diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-28 15:05:42 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2007-06-28 15:05:42 +0000 |
commit | 5a2b2173649670c2446e51812f4954c50ad80082 (patch) | |
tree | 0a92065fa02c591786f21d1eb630c91048a4a320 /t/op/vec.t | |
parent | ed625a3c4f5aba89b0603ad0a1772553ff816cd7 (diff) | |
download | perl-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-x | t/op/vec.t | 8 |
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)); |