summaryrefslogtreecommitdiff
path: root/t/op/quotemeta.t
diff options
context:
space:
mode:
authorTom Phoenix <rootbeer@teleport.com>1996-12-29 17:46:21 -0800
committerChip Salzenberg <chip@atlantic.net>1997-01-01 08:59:00 +1200
commit3524d3b9766c150548bbd837b65d78ef993d647d (patch)
treea2d6506da30da1584d4c784254b5258564f0e0c6 /t/op/quotemeta.t
parentd5c001ddae568c5769b6a9eb70138c72d385cacb (diff)
downloadperl-3524d3b9766c150548bbd837b65d78ef993d647d.tar.gz
More tests
private-msgid: <Pine.GSO.3.95.961229170736.15213M-100000@solaris.teleport.co
Diffstat (limited to 't/op/quotemeta.t')
-rwxr-xr-xt/op/quotemeta.t12
1 files changed, 6 insertions, 6 deletions
diff --git a/t/op/quotemeta.t b/t/op/quotemeta.t
index 09794571b1..20dd312b31 100755
--- a/t/op/quotemeta.t
+++ b/t/op/quotemeta.t
@@ -1,15 +1,15 @@
#!./perl
print "1..15\n";
-$_=join "", grep $_=chr($_), 32..127;
+$_=join "", map chr($_), 32..127;
-#95 characters - 52 letters - 10 digits = 33 backslashes
-#95 characters + 33 backslashes = 128 characters
+# 96 characters - 52 letters - 10 digits - 1 underscore = 33 backslashes
+# 96 characters + 33 backslashes = 129 characters
$_=quotemeta $_;
-if ( length == 128 ){print "ok 1\n"} else {print "not ok 1\n"}
-if (tr/\\//cd == 94){print "ok 2\n"} else {print "not ok 2\n"}
+if ( length == 129 ){print "ok 1\n"} else {print "not ok 1\n"}
+# 95 non-backslash characters
+if (tr/\\//cd == 95){print "ok 2\n"} else {print "not ok 2\n"}
-#perl5a11 bus errors on this:
if (length quotemeta "" == 0){print "ok 3\n"} else {print "not ok 3\n"}
print "aA\UbB\LcC\EdD" eq "aABBccdD" ? "ok 4\n" : "not ok 4 \n";