Line | |
---|
1 | #include "rat.h" |
---|
2 | int main (void) { |
---|
3 | int ret; |
---|
4 | |
---|
5 | rat_init("RAT", "testing RAT itself before any other tests, stage 0"); |
---|
6 | |
---|
7 | rat_test("Dummy test with const, ok", 1); |
---|
8 | rat_test("Dummy test with const, fail", 0); |
---|
9 | |
---|
10 | rat_test_with_subtests("Subtests"); |
---|
11 | |
---|
12 | rat_subtest(1); |
---|
13 | rat_subtest(0); |
---|
14 | rat_subtest_crit(1); |
---|
15 | rat_subtest_crit(0); |
---|
16 | |
---|
17 | rat_subtests_fin(); |
---|
18 | |
---|
19 | ret = rat_fin(); |
---|
20 | |
---|
21 | rat_init("RAT", "testing RAT itself before any other tests, stage 1"); |
---|
22 | |
---|
23 | rat_test("Return value of stage 0", ret == 2); |
---|
24 | |
---|
25 | return rat_fin(); |
---|
26 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.