]> begriffs open source - libtap/blob - t/is.c
Add cmp_mem test
[libtap] / t / is.c
1 #include "tap.h"
2
3 int main () {
4     setvbuf(stdout, NULL, _IONBF, 0);
5     plan(18);
6     is("this", "that", "this is that"); /* bang */
7     is("this", "this", "this is this");
8     is("this", "that"); /* bang */
9     is("this", "this");
10     is(NULL, NULL, "null is null");
11     is(NULL, "this", "null is this"); /* bang */
12     is("this", NULL, "this is null"); /* bang */
13     is("foo\nfoo\nfoo", "bar\nbar\nbar"); /* bang */
14     is("foo\nfoo\nfoo", "foo\nfoo\nfoo");
15     isnt("this", "that", "this isnt that");
16     isnt("this", "this", "this isnt this"); /* bang */
17     isnt("this", "that");
18     isnt("this", "this"); /* bang */
19     isnt(NULL, NULL, "null isnt null"); /* bang */
20     isnt(NULL, "this", "null isnt this");
21     isnt("this", NULL, "this isnt null");
22     isnt("foo\nfoo\nfoo", "bar\nbar\nbar");
23     isnt("foo\nfoo\nfoo", "foo\nfoo\nfoo"); /* bang */
24     done_testing();
25 }