Skip to content

Instantly share code, notes, and snippets.

@garybernhardt
Created December 2, 2012 02:36
Show Gist options
  • Save garybernhardt/4186672 to your computer and use it in GitHub Desktop.
Save garybernhardt/4186672 to your computer and use it in GitHub Desktop.
#define assert_equals(expected, actual)\
if (expected != actual) {\
printf("FAIL: %#Lx != %#Lx\n", (uint64_t)expected, (uint64_t)actual);\
exit(1); \
}
#define run_test(name)\
printf("%s\n", #name);\
name();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment