diff options
Diffstat (limited to 'tap/tests/ok/ok-numeric/test.pl')
| -rw-r--r-- | tap/tests/ok/ok-numeric/test.pl | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tap/tests/ok/ok-numeric/test.pl b/tap/tests/ok/ok-numeric/test.pl new file mode 100644 index 00000000..86f165f2 --- /dev/null +++ b/tap/tests/ok/ok-numeric/test.pl | |||
| @@ -0,0 +1,21 @@ | |||
| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | use warnings; | ||
| 4 | use strict; | ||
| 5 | |||
| 6 | use Test::More; | ||
| 7 | |||
| 8 | my $rc = 0; | ||
| 9 | |||
| 10 | $rc = plan tests => 3; | ||
| 11 | diag("Returned: " . sprintf("%d", $rc)); | ||
| 12 | |||
| 13 | |||
| 14 | $rc = ok(1, 'First test'); | ||
| 15 | diag("Returned: $rc"); | ||
| 16 | |||
| 17 | $rc = ok(1, '1'); | ||
| 18 | diag("Returned: $rc"); | ||
| 19 | |||
| 20 | $rc = ok(1, 'Third test'); | ||
| 21 | diag("Returned: $rc"); | ||
