diff options
Diffstat (limited to 't')
-rwxr-xr-x | t/comp/use.t | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/t/comp/use.t b/t/comp/use.t index fb378b2979..eec6fe05c0 100755 --- a/t/comp/use.t +++ b/t/comp/use.t @@ -5,7 +5,7 @@ BEGIN { @INC = '../lib'; } -print "1..28\n"; +print "1..31\n"; my $i = 1; eval "use 5.000"; # implicit semicolon @@ -22,6 +22,25 @@ if ($@) { } print "ok ",$i++,"\n"; +eval "use 6.000;"; +unless ($@ =~ /Perl v6\.0\.0 required--this is only \Q$^V\E, stopped/) { + print "not "; +} +print "ok ",$i++,"\n"; + +eval "no 6.000;"; +if ($@) { + print STDERR $@,"\n"; + print "not "; +} +print "ok ",$i++,"\n"; + +eval "no 5.000;"; +unless ($@ =~ /Perls since v5\.0\.0 too modern--this is \Q$^V\E, stopped/) { + print "not "; +} +print "ok ",$i++,"\n"; + eval sprintf "use %.6f;", $]; if ($@) { print STDERR $@,"\n"; |