summaryrefslogtreecommitdiff
path: root/t/op/ver.t
diff options
context:
space:
mode:
authorJarkko Hietaniemi <jhi@iki.fi>2002-05-28 20:35:59 +0000
committerJarkko Hietaniemi <jhi@iki.fi>2002-05-28 20:35:59 +0000
commit4282de365ad3986f7690c8ae5aeb465272208972 (patch)
tree7eb0dae31c913ed4d36f7ff546a31ea82c28d75d /t/op/ver.t
parent5cda700b511c4f0c6578126263fb9dc92c79641e (diff)
downloadperl-4282de365ad3986f7690c8ae5aeb465272208972.tar.gz
Bump the version numbers to five-eight-oh.
p4raw-id: //depot/perl@16843
Diffstat (limited to 't/op/ver.t')
-rwxr-xr-xt/op/ver.t13
1 files changed, 12 insertions, 1 deletions
diff --git a/t/op/ver.t b/t/op/ver.t
index f1add6186b..1634cc340f 100755
--- a/t/op/ver.t
+++ b/t/op/ver.t
@@ -205,9 +205,20 @@ is(v200, eval("+v200"), 'v200 eq eval("+v200")' );
# Tests for string/numeric value of $] itself
my ($revision,$version,$subversion) = split '\.', sprintf("%vd",$^V);
+print "# revision = '$revision'\n";
+print "# version = '$version'\n";
+print "# subversion = '$subversion'\n";
+
my $v = sprintf("%d.%.3d%.3d",$revision,$version,$subversion);
-ok( $v eq "$]", qq{"\$^V eq "\$]"});
+print "# v = '$v'\n";
+print "# ] = '$]'\n";
+
+$v =~ s/000$// if $subversion == 0;
+
+print "# v = '$v'\n";
+
+ok( $v eq "$]", qq{\$^V eq "\$]"});
$v = $revision + $version/1000 + $subversion/1000000;