summaryrefslogtreecommitdiff
path: root/t/op/subst.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/subst.t')
-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";
+