summaryrefslogtreecommitdiff
path: root/t/run/switchn.t
blob: 6ad4a7265f0516c25509e26e720739705c74cba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!./perl -n

BEGIN {
    chdir 't' if -d 't';
    @INC = '../lib';
    require './test.pl';
    *ARGV = *DATA;
    plan(tests => 3);
}

END {
    pass("Final test");
}

chomp;
is("ok ".$., $_, "Checking line $.");

s/^/not /;

__DATA__
ok 1
ok 2