blob: 5b9828ec9541ee0f35c9e399de4b9cf800329247 [file] [log] [blame]
description(
"This test checks regular expressions using extended (> 255) characters and character classes."
);
shouldBe('(new RegExp("[\u0100-\u0101]")).exec("a")', 'null');
shouldBe('(new RegExp("[\u0100]")).exec("a")', 'null');
shouldBe('(new RegExp("\u0100")).exec("a")', 'null');
shouldBe('(new RegExp("[\u0061]")).exec("a").toString()', '"a"');
shouldBe('(new RegExp("[\u0100-\u0101a]")).exec("a").toString()', '"a"');
shouldBe('(new RegExp("[\u0100a]")).exec("a").toString()', '"a"');
shouldBe('(new RegExp("\u0061")).exec("a").toString()', '"a"');
shouldBe('(new RegExp("[a-\u0100]")).exec("a").toString()', '"a"');
shouldBe('(new RegExp("[\u0100]")).exec("\u0100").toString()', '"\u0100"');
shouldBe('(new RegExp("[\u0100-\u0101]")).exec("\u0100").toString()', '"\u0100"');
shouldBe('(new RegExp("\u0100")).exec("\u0100").toString()', '"\u0100"');