diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-09-01 14:45:23 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2005-09-01 14:45:23 +0000 |
commit | 468aa647417bbcdb0729a787fa25968401364880 (patch) | |
tree | 51e1355e9f5ac34542990153cba5fb0d298eb89d /t | |
parent | e1b8f2440d42d1ef507b8ee444aca4c022615fdf (diff) | |
download | perl-468aa647417bbcdb0729a787fa25968401364880.tar.gz |
Add the "no 6" / "no v6" syntax.
p4raw-id: //depot/perl@25344
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"; |