summaryrefslogtreecommitdiffstats
path: root/tap/tests/diag/test.pl
diff options
context:
space:
mode:
Diffstat (limited to 'tap/tests/diag/test.pl')
-rw-r--r--tap/tests/diag/test.pl16
1 files changed, 16 insertions, 0 deletions
diff --git a/tap/tests/diag/test.pl b/tap/tests/diag/test.pl
new file mode 100644
index 0000000..621dc27
--- /dev/null
+++ b/tap/tests/diag/test.pl
@@ -0,0 +1,16 @@
1#!/usr/bin/perl
2
3use warnings;
4use strict;
5
6use Test::More;
7
8my $rc = 0;
9
10plan tests => 2;
11
12$rc = diag("A diagnostic message");
13diag("Returned: $rc");
14
15ok(1, 'test 1') or diag "ok() failed, and shouldn't";
16ok(0, 'test 2') or diag "ok() passed, and shouldn't";