APItest/t/utf8_warn_base.pl: Fix broken tests
authorKarl Williamson <khw@cpan.org>
Mon, 31 Jul 2017 03:47:17 +0000 (21:47 -0600)
committerKarl Williamson <khw@cpan.org>
Mon, 31 Jul 2017 03:53:59 +0000 (21:53 -0600)
There was a typo in one test, and in the other, the code point is output
as Unicode, not native.

ext/XS-APItest/t/utf8_warn_base.pl

index 3eddeaa..07652e8 100644 (file)
@@ -121,7 +121,7 @@ my @tests;
         ],
         [ "overlong malformation, highest 2-byte",
             (isASCII) ? "\xc1\xbf" : I8_to_native("\xc4\xbf"),
-            (isASCII) ? 0x7F : utf8::unicode_to_native(0x9F),
+            (isASCII) ? 0x7F : 0x9F,    # Output as U+, so no need to xlate
         ],
         [ "overlong malformation, lowest 3-byte",
             (isASCII) ? "\xe0\x80\x80" : I8_to_native("\xe0\xa0\xa0"),
@@ -524,6 +524,7 @@ my @tests;
                     I8_to_native(
                     "\xff\xa0\xa0\xa0\xa0\xa0\xa1\xa0\xa0\xa0\xa0\xa0\xa0\xa0"),
                     0x800000000,
+                      40000000
                 ],
                 [ "requires at least 32 bits",
                     I8_to_native(