#include "utest.h" static int a, b; /* This should pass */ TEST_BEGIN(test_pass) { asserteq(a, 0); assertneq(a, b); expect(b > a, "expected b > a"); TEST_OUT } TEST_END /* This should fail */ TEST_BEGIN(test_fail) { expect(0, "oopsie!"); TEST_OUT } TEST_END void test_init(void) { a = 0, b = 1; printf("hello, world!\n\n"); } void test_destroy(void) { printf("\ngood bye!\n"); } RUN_TEST_SUITE(test_init, test_destroy, test_pass, test_fail);