Index: test/intl/general/case-mapping.js |
diff --git a/test/intl/general/case-mapping.js b/test/intl/general/case-mapping.js |
index 8fb9e82933f4a53f80788fb2ddae9af59d4bd0f4..ec73a0ba6698b1e017a93e84469cf6ac59564cab 100644 |
--- a/test/intl/general/case-mapping.js |
+++ b/test/intl/general/case-mapping.js |
@@ -16,14 +16,33 @@ assertEquals("σς", "\u03A3\u03A3".toLowerCase()); |
// Expand sharp s in latin1 fastpath |
assertEquals("ASSB", "A\u00DFB".toUpperCase()); |
assertEquals("AB", "Ab".toUpperCase()); |
-// Find first upper case in fastpath |
+// Find first uppercase in fastpath |
+// Input length < a machine word size |
+assertEquals("ab", "ab".toLowerCase()); |
assertEquals("ab", "aB".toLowerCase()); |
assertEquals("AÜ", "aü".toUpperCase()); |
assertEquals("AÜ", "AÜ".toUpperCase()); |
assertEquals("aü", "aü".toLowerCase()); |
+assertEquals("aü", "aÜ".toLowerCase()); |
assertEquals("aü", "AÜ".toLowerCase()); |
assertEquals("aü", "AÜ".toLowerCase()); |
+// Input length >= a machine word size |
+assertEquals("abcdefghij", "abcdefghij".toLowerCase()); |
+assertEquals("abcdefghij", "abcdefghiJ".toLowerCase()); |
+assertEquals("abçdefghij", "abçdefghiJ".toLowerCase()); |
+assertEquals("abçdefghij", "abÇdefghiJ".toLowerCase()); |
+assertEquals("abcdefghiá", "abcdeFghiá".toLowerCase()); |
+assertEquals("abcdefghiá", "abcdeFghiÁ".toLowerCase()); |
+ |
+assertEquals("ABCDEFGHIJ", "ABCDEFGHIJ".toUpperCase()); |
+assertEquals("ABCDEFGHIJ", "ABCDEFGHIj".toUpperCase()); |
+assertEquals("ABÇDEFGHIJ", "ABÇDEFGHIj".toUpperCase()); |
+assertEquals("ABÇDEFGHIJ", "ABçDEFGHIj".toUpperCase()); |
+assertEquals("ABCDEFGHIÁ", "ABCDEfGHIÁ".toUpperCase()); |
+assertEquals("ABCDEFGHIÁ", "ABCDEfGHIá".toUpperCase()); |
+ |
+ |
// Starts with fastpath, but switches to full Unicode path |
// U+00FF is uppercased to U+0178. |
assertEquals("AŸ", "aÿ".toUpperCase()); |