source: roaraudio/tests/test-rat.c @ 5889:d866fb1213d6

Last change on this file since 5889:d866fb1213d6 was 4523:c263513b053a, checked in by phi, 13 years ago

added new test system RAT

File size: 509 bytes
Line 
1#include "rat.h"
2int 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.