]> git.ozlabs.org Git - ccan/blobdiff - ccan_tools/libtap/tests/diag/test.pl
Include all the tools under ccan_tools dir, hacked to work for me.
[ccan] / ccan_tools / libtap / tests / diag / test.pl
diff --git a/ccan_tools/libtap/tests/diag/test.pl b/ccan_tools/libtap/tests/diag/test.pl
new file mode 100644 (file)
index 0000000..d5971cd
--- /dev/null
@@ -0,0 +1,13 @@
+#!/usr/bin/perl
+
+use warnings;
+use strict;
+
+use Test::More;
+
+plan tests => 2;
+
+diag("A diagnostic message");
+
+ok(1, 'test 1') or diag "ok() failed, and shouldn't";
+ok(0, 'test 2') or diag "ok() passed, and shouldn't";