OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 // Some edge cases that unibrow got wrong |
| 6 |
| 7 assertEquals("𐐘", "𐑀".toUpperCase()); |
| 8 assertEquals("𐑀", "𐐘".toLowerCase()); |
| 9 assertEquals("σ", "Σ".toLowerCase()); |
| 10 |
| 11 |
| 12 // Some different paths in the ICU case conversion fastpath |
| 13 |
| 14 assertEquals("σς", "\u03A3\u03A3".toLowerCase()); |
| 15 // Expand sharp s in latin1 fastpath |
| 16 assertEquals("ASSB", "A\u00DFB".toUpperCase()); |
| 17 assertEquals("AB", "Ab".toUpperCase()); |
| 18 // Find first upper case in fastpath |
| 19 assertEquals("ab", "aB".toLowerCase()); |
| 20 assertEquals("AÜ", "aü".toUpperCase()); |
| 21 assertEquals("AÜ", "AÜ".toUpperCase()); |
| 22 assertEquals("aü", "aü".toLowerCase()); |
| 23 assertEquals("aü", "AÜ".toLowerCase()); |
| 24 assertEquals("aü", "AÜ".toLowerCase()); |
| 25 // Reallocate and try again in callout to ICU |
| 26 assertEquals("CSSBẶ", "c\u00DFbặ".toUpperCase()); |
OLD | NEW |