summaryrefslogtreecommitdiff
path: root/t/run/switchn.t
diff options
context:
space:
mode:
Diffstat (limited to 't/run/switchn.t')
-rw-r--r--t/run/switchn.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/run/switchn.t b/t/run/switchn.t
index bca9a66e76..6ad4a7265f 100644
--- a/t/run/switchn.t
+++ b/t/run/switchn.t
@@ -1,15 +1,19 @@
#!./perl -n
BEGIN {
- print "1..3\n";
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require './test.pl';
*ARGV = *DATA;
+ plan(tests => 3);
}
END {
- print "ok 3\n";
+ pass("Final test");
}
-print;
+chomp;
+is("ok ".$., $_, "Checking line $.");
s/^/not /;