#include "rat.h" int main (void) { int ret; rat_init("RAT", "testing RAT itself before any other tests, stage 0"); rat_test("Dummy test with const, ok", 1); rat_test("Dummy test with const, fail", 0); rat_test_with_subtests("Subtests"); rat_subtest(1); rat_subtest(0); rat_subtest_crit(1); rat_subtest_crit(0); rat_subtests_fin(); ret = rat_fin(); rat_init("RAT", "testing RAT itself before any other tests, stage 1"); rat_test("Return value of stage 0", ret == 2); return rat_fin(); }