Lines Matching refs:str2

26         { str1: 'apple', str2: 'apple' },
27 { str1: 'apple', str2: 'banana' },
28 { str1: 'banana', str2: 'apple' },
29 { str1: 'app', str2: 'apple' },
30 { str1: 'application', str2: 'apple' },
31 { str1: 'Apple', str2: 'apple' },
32 { str1: '123', str2: '1234' },
33 { str1: '1234', str2: '123' },
34 { str1: 'Zebra', str2: 'apple' },
35 { str1: 'appleappleappleappleappleapple', str2: 'appleappleappleappleappleapple' },
36 { str1: 'appleappleappleappleappleapple', str2: 'appleappleapplebppleappleapple' },
37 { str1: 'appleappleappleAppleappleapple', str2: 'appleappleappleappleappleapple' },
39 { str1: 'appleappleapple'.substring(0, 5), str2: 'appleappleapple'.substring(5, 10) },
40 { str1: 'appleappleapple'.substring(1, 6), str2: 'appleappleapple'.substring(6, 11) },
41 { str1: 'appleappleapple'.substring(0, 5), str2: 'appleappleapple'.substring(10, 15) },
42 { str1: 'appleappleapple'.substring(0, 5), str2: 'appleappleapple'.substring(5, 11) },
44 { str1: 'HelloWorld', str2: 'Hello'.concat('World') },
45 { str1: 'Ni'.concat('Hao', 'Ya'), str2: 'NiHaoYa' },
46 { str1: 'HelloWorld', str2: 'Hello'.concat('World ') },
47 { str1: 'Ni'.concat('Hao', 'Ya', '1'), str2: 'NiHaoYa' },
49 { str1: 'Hell'.concat('oWorld'), str2: 'Hello'.concat('World') },
50 { str1: 'Ni'.concat('Hao', 'Ya'), str2: 'NiHao'.concat('Ya') },
51 { str1: 'Hello'.concat('a'), str2: 'Hello'.concat('b') },
52 { str1: 'Ni'.concat('Hao', '8'), str2: 'NiHao'.concat('7') },
54 { str1: 'appleappleapple'.substring(5, 10), str2: 'app'.concat('le') },
55 { str1: 'hello'.concat('world'), str2: 'ohelloworld'.substring(1) },
56 { str1: 'hello'.concat('world'), str2: 'ohelloworld'.substring(2) },
57 { str1: 'appleappleapple'.substring(5, 11), str2: 'app'.concat('le') },
59 { str1: 'apple', str2: 'appleappleapple'.substring(5, 10) },
60 { str1: 'appleappleapple'.substring(0, 5), str2: 'apple' },
62 { str1: 'hello'.concat('world').substring(2, 4), str2: 'hello'.substring(2, 3).concat('l') },
66 const result = testCase.str1.localeCompare(testCase.str2);
71 { str1: 'café', str2: 'cafe' },
72 { str1: 'café', str2: 'café' },
73 { str1: 'resumé', str2: 'resume' },
74 { str1: 'resume', str2: 'resumé' },
75 { str1: ' naïve', str2: 'naïve' },
76 { str1: 'naïve', str2: ' naïve' },
77 { str1: 'élan', str2: 'elan' },
78 { str1: 'élan', str2: 'e' + String.fromCharCode(0x0301) + 'lan' }
81 const result = testCase.str1.localeCompare(testCase.str2, 'en-US');