This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
71a9d10
)
concise.t: work with PERL_UNICODE=""
author
David Mitchell
<davem@iabyn.com>
Wed, 24 Aug 2016 12:41:00 +0000
(13:41 +0100)
committer
David Mitchell
<davem@iabyn.com>
Wed, 24 Aug 2016 12:41:00 +0000
(13:41 +0100)
Fixup some tests I added recently so that they pass with PERL_UNICODE=""
- which causes extra hints bits to be set in nextstate ops.
ext/B/t/concise.t
patch
|
blob
|
blame
|
history
diff --git
a/ext/B/t/concise.t
b/ext/B/t/concise.t
index
fe955d1
..
3541ce3
100644
(file)
--- a/
ext/B/t/concise.t
+++ b/
ext/B/t/concise.t
@@
-514,10
+514,14
@@
like $out, qr/$end/, 'OP_AND->op_other points correctly';
my @hints = $out =~ /nextstate\([^)]+\) (.*) ->/g;
+ # handle test script run with PERL_UNICODE=""
+ s/>,<,// for @hints;
+ s/%,// for @hints;
+
is(scalar(@hints), 3, "3 hints");
is($hints[0], 'v:{', "hints[0]");
is($hints[1], 'v:*,&,{,x*,x&,x$,$', "hints[1]");
- is($hints[2], 'v:
%,
us,*,&,{,x*,x&,x$,$,fea=7', "hints[2]");
+ is($hints[2], 'v:us,*,&,{,x*,x&,x$,$,fea=7', "hints[2]");
}
__END__