]> git.ozlabs.org Git - ccan/blob - ccan_tools/libtap/tests/ok/ok/test.pl
Include all the tools under ccan_tools dir, hacked to work for me.
[ccan] / ccan_tools / libtap / tests / ok / ok / test.pl
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use Test::More;
7
8 my $rc = 0;
9
10 plan tests => 5;
11
12 $rc = ok(1 == 1, '1 equals 1'); # Test ok() passes when it should
13 diag("Returned: $rc");
14
15 $rc = ok(1 == 1, '1 equals 1'); # Used for %d testing in test.c
16 diag("Returned: $rc");
17
18 $rc = ok(1 == 1, '1 == 1');     # Test ok1() passes when it should
19 diag("Returned: $rc");
20
21 $rc = ok(1 == 2, '1 equals 2'); # Test ok() fails when it should
22 diag("Returned: $rc");
23
24 $rc = ok(1 == 2, '1 == 2');     # Test ok1() fails when it should
25 diag("Returned: $rc");