test: add tap utility files
[transsip.git] / src / test / test_dummy.c
blob7369f65e5e3fc5c02b08aef39c246857c4a0bee9
1 #include <assert.h>
2 #include <errno.h>
4 #include "tap.h"
6 int main(void)
8 setvbuf(stdout, NULL, _IONBF, 0);
9 /* dummy example from libtap */
10 plan(18);
11 is("this", "that", "this is that"); /* bang */
12 is("this", "this", "this is this");
13 is("this", "that"); /* bang */
14 is("this", "this");
15 is(NULL, NULL, "null is null");
16 is(NULL, "this", "null is this"); /* bang */
17 is("this", NULL, "this is null"); /* bang */
18 is("foo\nfoo\nfoo", "bar\nbar\nbar"); /* bang */
19 is("foo\nfoo\nfoo", "foo\nfoo\nfoo");
20 isnt("this", "that", "this isnt that");
21 isnt("this", "this", "this isnt this"); /* bang */
22 isnt("this", "that");
23 isnt("this", "this"); /* bang */
24 isnt(NULL, NULL, "null isnt null"); /* bang */
25 isnt(NULL, "this", "null isnt this");
26 isnt("this", NULL, "this isnt null");
27 isnt("foo\nfoo\nfoo", "bar\nbar\nbar");
28 isnt("foo\nfoo\nfoo", "foo\nfoo\nfoo"); /* bang */
29 done_testing();