summaryrefslogtreecommitdiff
path: root/t/op
diff options
context:
space:
mode:
authorInaba Hiroto <inaba@st.rim.or.jp>1998-01-11 00:53:33 +0900
committerGurusamy Sarathy <gsar@cpan.org>1998-03-02 03:13:32 +0000
commitf3ea7b5ee70397733e54550d64ca43f4288e744f (patch)
treea0e574cfde47c08fdcee740bda0c7e0d76fc6e79 /t/op
parentecca16b0cfe0c7f04ba520f2924946a13507530e (diff)
downloadperl-f3ea7b5ee70397733e54550d64ca43f4288e744f.tar.gz
[win32] still another
Subject: [PERL] tr///s bug Message-Id: <19980110155333D.inaba@st.rim.or.jp> p4raw-id: //depot/win32/perl@613
Diffstat (limited to 't/op')
-rwxr-xr-xt/op/subst.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/op/subst.t b/t/op/subst.t
index c6cfb8c96d..4fd00d5067 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..67\n";
+print "1..68\n";
$x = 'foo';
$_ = "x";
@@ -261,3 +261,9 @@ print $_ eq "foobarfoobbar" ? "ok 66\n" : "not ok 66 # `$_' ne `foobarfoobbar'\n
eval 's{foo} # this is a comment, not a delimiter
{bar};';
print @? ? "not ok 67\n" : "ok 67\n";
+
+# check if squashing works at the end of string
+$_="baacbaa";
+tr/a/b/s;
+print $_ eq "bbcbb" ? "ok 68\n" : "not ok 68 # `$_' ne `bbcbb'\n";
+