Drop "v" prefix from sprintf("%vd", $^V).
[p5sagit/p5-mst-13.2.git] / t / op / ref.t
index 81a6543..d4fb4fd 100755 (executable)
@@ -8,7 +8,7 @@ BEGIN {
 require 'test.pl';
 use strict qw(refs subs);
 
-plan (96);
+plan (98);
 
 # Test glob operations.
 
@@ -54,6 +54,11 @@ $BAR = \$BAZ;
 $BAZ = "hit";
 is ($$$FOO, 'hit');
 
+# test that ref(vstring) makes sense
+my $vstref = \v1;
+is (ref($vstref), "VSTRING", "ref(vstr) eq VSTRING");
+like ( $vstref, qr/VSTRING\(0x[0-9a-f]+\)/, '\vstr is also VSTRING');
+
 # Test references to real arrays.
 
 my $test = curr_test();