APItest/t/utf8_warn_base.pl: Move some tests in the file
authorKarl Williamson <khw@cpan.org>
Mon, 19 Jun 2017 04:50:12 +0000 (22:50 -0600)
committerKarl Williamson <khw@cpan.org>
Thu, 13 Jul 2017 03:14:25 +0000 (21:14 -0600)
The order had been to mostly test in increasing code point order.  This
sorts the two exceptions to comply.

ext/XS-APItest/t/utf8_warn_base.pl

index b5e6453..af19bf9 100644 (file)
@@ -55,20 +55,6 @@ my @tests;
             (isASCII) ? "\xed\xbf\xbf" : I8_to_native("\xf1\xb7\xbf\xbf"),
             0xDFFF,
         ],
-        [ "first non_unicode",
-            (isASCII)
-            ?              "\xf4\x90\x80\x80"
-            : I8_to_native("\xf9\xa2\xa0\xa0\xa0"),
-            0x110000,
-            2,
-        ],
-        [ "non_unicode whose first byte tells that",
-            (isASCII)
-            ?              "\xf5\x80\x80\x80"
-            : I8_to_native("\xfa\xa0\xa0\xa0\xa0"),
-            (isASCII) ? 0x140000 : 0x200000,
-            1,
-        ],
         [ "first of 32 consecutive non-character code points",
             (isASCII) ? "\xef\xb7\x90" : I8_to_native("\xf1\xbf\xae\xb0"),
             0xFDD0,
@@ -269,6 +255,20 @@ my @tests;
             : I8_to_native("\xf9\xa1\xbf\xbf\xbf"),
             0x10FFFF,
         ],
+        [ "first non_unicode",
+            (isASCII)
+            ?              "\xf4\x90\x80\x80"
+            : I8_to_native("\xf9\xa2\xa0\xa0\xa0"),
+            0x110000,
+            2,
+        ],
+        [ "non_unicode whose first byte tells that",
+            (isASCII)
+            ?              "\xf5\x80\x80\x80"
+            : I8_to_native("\xfa\xa0\xa0\xa0\xa0"),
+            (isASCII) ? 0x140000 : 0x200000,
+            1,
+        ],
         [ "requires at least 32 bits",
             (isASCII)
             ?  "\xfe\x82\x80\x80\x80\x80\x80"