Debian Codegraph @

t/integration/test-w.t

raw
1 use Test2::V0;
2
3 use App::Yath::Tester qw/yath/;
4
5 my $dir = __FILE__;
6 $dir =~ s{\.t$}{}g;
7 $dir =~ s{^\./}{};
8
9 # assert that, regardless of order, the `perl -w` shebang only applies
10 # to the test file it appears in; see
11 # https://github.com/Test-More/Test2-Harness/issues/266
12
13 yath(
14 command => 'test',
15 args => ["$dir/a.tx", "$dir/b.tx", '--ext=tx'],
16 exit => 0,
17 );
18
19 yath(
20 command => 'test',
21 args => ["$dir/b.tx", "$dir/a.tx", '--ext=tx'],
22 exit => 0,
23 );
24
25 done_testing;