summaryrefslogtreecommitdiff
path: root/cpan/Test-Simple/t/Tester/tbt_04line_num.t
diff options
context:
space:
mode:
Diffstat (limited to 'cpan/Test-Simple/t/Tester/tbt_04line_num.t')
-rw-r--r--cpan/Test-Simple/t/Tester/tbt_04line_num.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpan/Test-Simple/t/Tester/tbt_04line_num.t b/cpan/Test-Simple/t/Tester/tbt_04line_num.t
new file mode 100644
index 0000000000..9e8365acbf
--- /dev/null
+++ b/cpan/Test-Simple/t/Tester/tbt_04line_num.t
@@ -0,0 +1,8 @@
+#!/usr/bin/perl
+
+use Test::More tests => 3;
+use Test::Builder::Tester;
+
+is(line_num(),6,"normal line num");
+is(line_num(-1),6,"line number minus one");
+is(line_num(+2),10,"line number plus two");