summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/perl/t/re/script_run.t
diff options
context:
space:
mode:
authorAndrew Fresh <afresh1@cvs.openbsd.org>2019-12-30 02:13:58 +0000
committerAndrew Fresh <afresh1@cvs.openbsd.org>2019-12-30 02:13:58 +0000
commit872e2e229e80c947466f1d4838dc89e6b89140bc (patch)
tree5cefc6ebf8f6a09292c6ffc9b546de3aeeb41a0a /gnu/usr.bin/perl/t/re/script_run.t
parent24f96998b9bcba93445125a9cf010eb192b08a7e (diff)
Fix merge issues, remove excess files - match perl-5.30.1 dist
Timing is good deraadt@, OK sthen@
Diffstat (limited to 'gnu/usr.bin/perl/t/re/script_run.t')
-rw-r--r--gnu/usr.bin/perl/t/re/script_run.t17
1 files changed, 14 insertions, 3 deletions
diff --git a/gnu/usr.bin/perl/t/re/script_run.t b/gnu/usr.bin/perl/t/re/script_run.t
index 4b098c5129b..21cacec8be2 100644
--- a/gnu/usr.bin/perl/t/re/script_run.t
+++ b/gnu/usr.bin/perl/t/re/script_run.t
@@ -92,10 +92,17 @@ foreach my $type ('script_run', 'sr', 'atomic_script_run', 'asr') {
}
# Until fixed, this was skipping the '['
- unlike("abc]c", qr/^ (*sr:a(*sr:[bc]*)c) $/x, "Doesn't skip parts of exact matches");
+ unlike("abc]c", qr/^ (*sr:a(*sr:[bc]*)c) $/x,
+ "Doesn't skip parts of exact matches");
- like("abc", qr/(*asr:a[bc]*c)/, "Outer asr works on a run");
- unlike("abc", qr/(*asr:a(*asr:[bc]*)c)/, "Nested asr works to exclude some things");
+ like("abc", qr/(*asr:a[bc]*c)/, "Outer asr works on a run");
+ unlike("abc", qr/(*asr:a(*asr:[bc]*)c)/,
+ "Nested asr works to exclude some things");
+
+ like("\x{0980}12\x{0993}", qr/^(*sr:.{4})/,
+ "Script with own zero works with ASCII digits"); # perl #133547
+ like("\x{3041}12\x{3041}", qr/^(*sr:.{4})/,
+ "Script without own zero works with ASCII digits");
like("A\x{ff10}\x{ff19}B", qr/^(*sr:.{4})/,
"Non-ASCII Common digits work with Latin"); # perl #133547
@@ -112,4 +119,8 @@ foreach my $type ('script_run', 'sr', 'atomic_script_run', 'asr') {
like("\x{1d7ce}αβγ", qr/^(*sr:.{4})/,
"Non-ASCII Common digits work with Greek"); # perl #133547
+ fresh_perl_is('no warnings "experimental::script_run";
+ print scalar "0" =~ m!(((*sr:()|)0)(*sr:)0|)!;',
+ 1, {}, '[perl #133997]');
+
done_testing();