summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2007-12-27 23:28:31 +0000
committerNicholas Clark <nick@ccl4.org>2007-12-27 23:28:31 +0000
commit96704b718ce99c204c7abe57a0c70fd20f6584fd (patch)
treec10e706900dfd610394a558c327d4285996e5b00 /t
parenta2794585f298613c6353549c1058857370acfed3 (diff)
downloadperl-96704b718ce99c204c7abe57a0c70fd20f6584fd.tar.gz
Better diagnostics for the tests for #20683.
p4raw-id: //depot/perl@32749
Diffstat (limited to 't')
-rwxr-xr-xt/op/pat.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/op/pat.t b/t/op/pat.t
index 138e5b113a..821e6526d5 100755
--- a/t/op/pat.t
+++ b/t/op/pat.t
@@ -3138,13 +3138,13 @@ ok("bbbbac" =~ /$pattern/ && $1 eq 'a', "[perl #3547]");
foreach (1,2,3,4) {
$p++ if /(??{ $p })/
}
- ok ($p == 5, "[perl #20683] (??{ }) returns stale values");
+ iseq ($p, 5, "[perl #20683] (??{ }) returns stale values");
{ package P; $a=1; sub TIESCALAR { bless[] } sub FETCH { $a++ } }
tie $p, P;
foreach (1,2,3,4) {
/(??{ $p })/
}
- ok ( $p == 5, "(??{ }) returns stale values");
+ iseq ( $p, 5, "(??{ }) returns stale values");
}
{