summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorColin Kuskie <colink@perldreamer.com>2012-09-15 00:45:44 -0700
committerjkeenan <jkeenan@cpan.org>2012-09-16 12:48:43 -0400
commit4e94c743932935b6db5a300ea207f241bdfcd130 (patch)
treeafa8b6f5ebe94f268ae2d5b25d069faef910dc96 /t
parent3f61bd287ed4a45378c0cdef7688e5043655fec7 (diff)
downloadperl-4e94c743932935b6db5a300ea207f241bdfcd130.tar.gz
Refactor t/run/switchF.t to use test.pl instead of making TAP by hand.
Diffstat (limited to 't')
-rw-r--r--t/run/switchF.t11
1 files changed, 8 insertions, 3 deletions
diff --git a/t/run/switchF.t b/t/run/switchF.t
index a6e9031d0c..dcf44094dd 100644
--- a/t/run/switchF.t
+++ b/t/run/switchF.t
@@ -1,11 +1,16 @@
#!./perl -anFx+
BEGIN {
- print "1..2\n";
+ chdir 't' if -d 't';
+ @INC = '../lib';
+ require './test.pl';
*ARGV = *DATA;
+ plan(tests => 2);
}
-print "@F";
+my $index = $F[-1];
+chomp $index;
+is($index, $., "line $.");
__DATA__
okx1
-okxxx2
+okx3xx2