test262/test/built-ins/RegExp/CharacterClassEscapes
Mathias Bynens e558b29b69
Optimize character class escape tests
Previously, these tests simply compared against an equivalent regular expression pattern by generating a large string containing either all code points up to U+FFFF or U+10FFFF, depending on the `u` flag, and then performing:

    str.replace(re, '') === str.replace(otherRe, '');

These two `String#replace` calls can be optimized into a single `RegExp#test` call by following the pattern used in the property escapes tests at https://github.com/mathiasbynens/unicode-property-escapes-tests.
2018-11-06 16:14:14 -08:00
..
character-class-digit-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-digit-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-digit-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-digit-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-digit-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-digit-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-digit-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-digit-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-whitespace-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-whitespace-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-whitespace-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-whitespace-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-word-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-word-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-word-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-non-word-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-whitespace-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-whitespace-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-whitespace-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-whitespace-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-word-class-escape-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-word-class-escape-plus-quantifier-flags-u.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-word-class-escape-plus-quantifier.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00
character-class-word-class-escape.js Optimize character class escape tests 2018-11-06 16:14:14 -08:00