Lines Matching refs:Range
59 function Range(from, to, flags) {
76 assertTrue(Range(first, last).test(first), 1);
77 assertTrue(Range(first, last).test(middle), 2);
78 assertTrue(Range(first, last).test(last), 3);
80 assertFalse(Range(first, last).test(first_other_case), 4);
81 assertFalse(Range(first, last).test(middle_other_case), 5);
82 assertFalse(Range(first, last).test(last_other_case), 6);
84 assertTrue(Range(first, last, "i").test(first), 7);
85 assertTrue(Range(first, last, "i").test(middle), 8);
86 assertTrue(Range(first, last, "i").test(last), 9);
88 assertTrue(Range(first, last, "i").test(first_other_case), 10);
89 assertTrue(Range(first, last, "i").test(middle_other_case), 11);
90 assertTrue(Range(first, last, "i").test(last_other_case), 12);
93 assertFalse(Range(first, last).test(chars.BetweenCases), 13);
94 assertFalse(Range(first, last, "i").test(chars.BetweenCases), 14);
98 assertTrue(Range(chars.FIRST, chars.last).test(chars.BetweenCases), 15);
99 assertTrue(Range(chars.FIRST, chars.last, "i").test(chars.BetweenCases), 16);
103 // Test range that covers both greek and cyrillic characters.
105 assertTrue(Range(greek.FIRST, cyrillic.last).test(greek[key]), 17 + key);
107 assertTrue(Range(greek.FIRST, cyrillic.last).test(cyrillic[key]), 18 + key);
114 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(greek.first), 19);
115 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(greek.middle), 20);
116 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(greek.last), 21);
118 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(cyrillic.FIRST), 22);
119 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(cyrillic.MIDDLE), 23);
120 assertTrue(Range(greek.first, cyrillic.LAST, flag).test(cyrillic.LAST), 24);
122 // A range that covers the lower case greek letters and the upper case cyrillic
124 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(greek.FIRST), 25);
125 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(greek.MIDDLE), 26);
126 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(greek.LAST), 27);
128 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(cyrillic.first), 28);
129 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(cyrillic.middle), 29);
130 assertEquals(ignore_case, Range(greek.first, cyrillic.LAST, flag).test(cyrillic.last), 30);
181 // A range that covers both ASCII and non-ASCII.