summaryrefslogtreecommitdiff
path: root/t/op/vec.t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-28 15:05:42 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-06-28 15:05:42 +0000
commit5a2b2173649670c2446e51812f4954c50ad80082 (patch)
tree0a92065fa02c591786f21d1eb630c91048a4a320 /t/op/vec.t
parented625a3c4f5aba89b0603ad0a1772553ff816cd7 (diff)
downloadperl-5a2b2173649670c2446e51812f4954c50ad80082.tar.gz
Fix tests so they actually test $@. like() demands a qr//.
p4raw-id: //depot/perl@31493
Diffstat (limited to 't/op/vec.t')
-rwxr-xr-xt/op/vec.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/op/vec.t b/t/op/vec.t
index b59eafbdb4..4ca23f1a94 100755
--- a/t/op/vec.t
+++ b/t/op/vec.t
@@ -43,16 +43,16 @@ ok("$foo $bar $baz" eq "1 2 3");
# error cases
$x = eval { vec $foo, 0, 3 };
-like($@, /^Illegal number of bits in vec/);
+like($@, qr/^Illegal number of bits in vec/);
$@ = undef;
$x = eval { vec $foo, 0, 0 };
-like($@, /^Illegal number of bits in vec/);
+like($@, qr/^Illegal number of bits in vec/);
$@ = undef;
$x = eval { vec $foo, 0, -13 };
-like($@, /^Illegal number of bits in vec/);
+like($@, qr/^Illegal number of bits in vec/);
$@ = undef;
$x = eval { vec($foo, -1, 4) = 2 };
-like($@, /^Illegal number of bits in vec/);
+like($@, qr/^Negative offset to vec in lvalue context/);
$@ = undef;
ok(! vec('abcd', 7, 8));