summaryrefslogtreecommitdiff
path: root/t/op/tr.t
diff options
context:
space:
mode:
Diffstat (limited to 't/op/tr.t')
-rw-r--r--t/op/tr.t11
1 files changed, 10 insertions, 1 deletions
diff --git a/t/op/tr.t b/t/op/tr.t
index 0f2ae97be6..5baa43178f 100644
--- a/t/op/tr.t
+++ b/t/op/tr.t
@@ -6,7 +6,7 @@ BEGIN {
require './test.pl';
}
-plan tests => 128;
+plan tests => 130;
my $Is_EBCDIC = (ord('i') == 0x89 & ord('J') == 0xd1);
@@ -506,4 +506,13 @@ SKIP: {
is($x,"\x{143}", "utf8 + closure");
}
+# Freeing of trans ops prior to pmtrans() [perl #102858].
+eval q{ $a ~= tr/a/b/; };
+ok 1;
+SKIP: {
+ skip "no encoding", 1 unless eval { require encoding; 1 };
+ eval q{ use encoding "utf8"; $a ~= tr/a/b/; };
+ ok 1;
+}
+1;