X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=t%2F10-base.t;h=33c6fb23c8f37f5162f549780a03bd49ed4cc9e4;hb=a00238a93730075d0dc26b6152c958c9d8da30a8;hp=da778e01dac1db3348681f157407c3d6b2e3271e;hpb=e76d964d90a17da3e4f61b9d99de3981896f5b4a;p=perl%2Fmodules%2Fsubs-auto.git diff --git a/t/10-base.t b/t/10-base.t index da778e0..33c6fb2 100644 --- a/t/10-base.t +++ b/t/10-base.t @@ -3,7 +3,7 @@ use strict; use warnings; -use Test::More tests => 65; +use Test::More tests => 67; my %_re = ( bareword => sub { qr/^Bareword\s+['"]?\s*$_[0]\s*['"]?\s+not\s+allowed\s+while\s+["']?\s*strict\s+subs\s*['"]?\s+in\s+use\s+at\s+$_[1]\s+line\s+$_[2]/ }, @@ -252,9 +252,21 @@ print DONGS "hlagh\n"; is($buf, "hlagh\n", 'filehandles should\'t be touched'); close DONGS; +seek DATA, 0, 1; +my @fruits = ; +chomp @fruits; +is_deeply(\@fruits, [ qw/apple pear banana/ ], 'DATA filehandle ok'); + eval { foo 7, 9, { } }; _got_ok('compiling to foo(7,9,{})'); is($foo, 16, 'foo really was executed'); eval { blech }; _got_undefined('blech', __LINE__-1); + +ok(-f $0 && -r _, '-X _'); + +__DATA__ +apple +pear +banana