Index: test/mjsunit/cyrillic.js |
diff --git a/test/mjsunit/cyrillic.js b/test/mjsunit/cyrillic.js |
index c5712e6f9d1dbd563aa7fa285971061a53239552..9b21c4f8ecaf573e1f5c6a835b5ae301d004b45e 100644 |
--- a/test/mjsunit/cyrillic.js |
+++ b/test/mjsunit/cyrillic.js |
@@ -187,9 +187,9 @@ for (var add_non_ascii_character_to_subject = 0; |
var ignore_case = (j == 0); |
var flag = ignore_case ? "i" : ""; |
var re = new RegExp(mixed, flag); |
- assertEquals(ignore_case || (full && add_non_ascii_character_to_subject), |
- re.test("A" + suffix), |
- 58 + flag + f); |
+ var expected = |
+ ignore_case || (full && !!add_non_ascii_character_to_subject); |
+ assertEquals(expected, re.test("A" + suffix), 58 + flag + f); |
assertTrue(re.test("a" + suffix), 59 + flag + f); |
assertTrue(re.test("~" + suffix), 60 + flag + f); |
assertTrue(re.test(cyrillic.MIDDLE), 61 + flag + f); |