Simplifying

This commit is contained in:
Markus Kauppila 2011-05-24 10:25:25 +03:00
parent 58ff822335
commit 6a2c27c6eb
5 changed files with 8 additions and 59 deletions

View file

@ -26,10 +26,13 @@
#include <stdlib.h>
void
assertEquals(Uint32 expected, Uint32 actual)
assertEquals(char *message, Uint32 expected, Uint32 actual)
{
if(expected != actual) {
exit(1);
printf("===============================\n");
printf("Assert failed: %s\n", message);
printf("Expected %d, got %d\n", expected, actual);
printf("===============================\n");
}
}