1 #include <utest/utest.h>
5 /* <--- Begin definition of test cases ---> */
8 UT_ASSERT_M("One plus one should equal 2", 1+1 == 2);
13 UT_ASSERT_M("One minus one should equal 0", 1-1 == 0);
17 bool test_three(void) {
18 UT_ASSERT_M("1 should equal 1", 1 == 1);
22 /* <--- End definition of test cases ---> */
24 struct utest utests[] = {
29 int num_utests = sizeof(utests) / sizeof(struct utest);
31 int main(int argc, char *argv[]) {
32 // Run test suite passing it all the args as whitelist of what tests to run.
33 char **whitelist = &argv[1];
34 int whitelist_len = argc - 1;
35 RUN_TEST_SUITE(utests, num_utests, whitelist, whitelist_len);