CSE320/hw0/tests/test.c
2022-01-15 17:00:23 -05:00

17 lines
474 B
C

#include <criterion/criterion.h>
#include "hi.h"
/**
* This is Criterion, an excellent testing framework for C.
* It is also really well documented.
* http://criterion.readthedocs.io/en/master/starter.html
*/
Test(CSE320_Suite, test_it_really_does_say_hi) {
cr_assert_str_not_empty(say_hi(),
"say_hi() function returns empty string!");
cr_assert_str_eq(say_hi(), "Hi",
"say_hi() function did not say 'Hi'");
}