This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
t/loc_tools.pl: Consider thread 0 always locale-safe
[perl5.git] / t / run / switchn.t
CommitLineData
d11311f7
RGS
1#!./perl -n
2
3BEGIN {
3f61bd28
CK
4 chdir 't' if -d 't';
5 @INC = '../lib';
6 require './test.pl';
d11311f7 7 *ARGV = *DATA;
3f61bd28 8 plan(tests => 3);
d11311f7 9}
c1c954ee
NC
10
11END {
3f61bd28 12 pass("Final test");
c1c954ee
NC
13}
14
3f61bd28
CK
15chomp;
16is("ok ".$., $_, "Checking line $.");
d11311f7 17
c1c954ee
NC
18s/^/not /;
19
d11311f7
RGS
20__DATA__
21ok 1
22ok 2