summaryrefslogtreecommitdiff
path: root/t/op/subst.t
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-05-16 17:53:16 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-05-16 17:53:16 +0000
commit2216f30a5dac149d1cc2bcb601b9e69c1ff374bf (patch)
treebb68b2d74e5c4efc0613fabdcfb146b998a23946 /t/op/subst.t
parentf878fbec0f3fac7e674b5c48a29bb093a47749b9 (diff)
downloadperl-2216f30a5dac149d1cc2bcb601b9e69c1ff374bf.tar.gz
[win32] add a test to check return value from successful s/// (there was none!)
p4raw-id: //depot/win32/perl@1001
Diffstat (limited to 't/op/subst.t')
-rwxr-xr-xt/op/subst.t5
1 files changed, 4 insertions, 1 deletions
diff --git a/t/op/subst.t b/t/op/subst.t
index 4fd00d5067..248aa71b9d 100755
--- a/t/op/subst.t
+++ b/t/op/subst.t
@@ -2,7 +2,7 @@
# $RCSfile: s.t,v $$Revision: 4.1 $$Date: 92/08/07 18:28:22 $
-print "1..68\n";
+print "1..69\n";
$x = 'foo';
$_ = "x";
@@ -267,3 +267,6 @@ $_="baacbaa";
tr/a/b/s;
print $_ eq "bbcbb" ? "ok 68\n" : "not ok 68 # `$_' ne `bbcbb'\n";
+# XXX TODO: Most tests above don't test return values of the ops. They should.
+$_ = "ab";
+print (s/a/b/ == 1 ? "ok 69\n" : "not ok 69\n");