Debian Codegraph @

js/src/jit-test/tests/strings/bug1947139.js

raw
1 function test() {
2 const char = "\u1FA2";
3 const upperChars = char.toUpperCase();
4 assertEq(upperChars.length, 2);
5 for (var i = 0; i < 20; i++) {
6 var prefix1 = "a".repeat(i);
7 var prefix2 = ".".repeat(i);
8 assertEq((prefix1 + char).toUpperCase(), prefix1.toUpperCase() + upperChars);
9 assertEq((prefix2 + char).toUpperCase(), prefix2 + upperChars);
10 }
11 }
12 test();