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