This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
concise.t: work with PERL_UNICODE=""
authorDavid Mitchell <davem@iabyn.com>
Wed, 24 Aug 2016 12:41:00 +0000 (13:41 +0100)
committerDavid 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

index fe955d1..3541ce3 100644 (file)
@@ -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__