summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorHugo van der Sanden <hv@crypt.org>2002-08-12 12:17:19 +0000
committerhv <hv@crypt.org>2002-08-12 12:17:19 +0000
commit30ebab2d3dd617d1dcdf565b56bdcd0db1751f0b (patch)
treea51701f22145947accdc83fddbc9f3e08faab041 /t
parent7de90c4d189afc08ce6abcc82d00feb9e430fc8f (diff)
downloadperl-30ebab2d3dd617d1dcdf565b56bdcd0db1751f0b.tar.gz
#17717 needed tests fixing up
p4raw-id: //depot/perl@17721
Diffstat (limited to 't')
-rwxr-xr-xt/op/chop.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/op/chop.t b/t/op/chop.t
index 1ac45c3cb9..87700de929 100755
--- a/t/op/chop.t
+++ b/t/op/chop.t
@@ -175,11 +175,11 @@ foreach (keys %chop) {
# chop and chomp can't be lvalues
eval 'chop($x) = 1;';
-print $@ =~ /Can\'t modify.*chop.*in.*assignment/ ? "ok 48\n" : "not ok 48\n";
+ok($@ =~ /Can\'t modify.*chop.*in.*assignment/);
eval 'chomp($x) = 1;';
-print $@ =~ /Can\'t modify.*chom?p.*in.*assignment/ ? "ok 49\n" : "not ok 49\n";
+ok($@ =~ /Can\'t modify.*chom?p.*in.*assignment/);
eval 'chop($x, $y) = (1, 2);';
-print $@ =~ /Can\'t modify.*chop.*in.*assignment/ ? "ok 50\n" : "not ok 50\n";
+ok($@ =~ /Can\'t modify.*chop.*in.*assignment/);
eval 'chomp($x, $y) = (1, 2);';
-print $@ =~ /Can\'t modify.*chom?p.*in.*assignment/ ? "ok 51\n" : "not ok 51\n";
+ok($@ =~ /Can\'t modify.*chom?p.*in.*assignment/);