Simplifying
This commit is contained in:
parent
58ff822335
commit
6a2c27c6eb
5 changed files with 8 additions and 59 deletions
|
@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue