Kevin Gibbons
adba7dfd9c
fix order
2022-08-09 12:15:49 -07:00
Kevin Gibbons
418419a345
add non-matching example
2022-08-09 12:15:49 -07:00
Kevin Gibbons
52284ba4bb
add tests for proposal-duplicate-named-capturing-groups
2022-08-09 12:15:49 -07:00
Philip Chimento
d45766bef3
Add cases to RegExp.prototype flags brand checking tests
...
For completeness, as we are doing in newer brand checking tests such as
those of Temporal, call these getters with a function object and a bigint
as the receiver.
Suggested in https://github.com/tc39/test262/pull/3614/files#r929662337
2022-08-09 12:07:36 -07:00
Richard Gibson
9e51a9d855
Update RegExp.prototype.{match,replace} tests to expect Get(rx, "flags")
...
Ref https://github.com/tc39/ecma262/pull/2791
2022-08-09 12:02:45 -07:00
Mathias Bynens
e623dd7a11
Add manually written tests for RegExp v
flag proposal ( #3614 )
...
https://github.com/tc39/proposal-regexp-v-flag
Issue: #3496 , https://github.com/tc39/proposal-regexp-v-flag/issues/52
Add more tests for the new RegExp `v` flag
Add test for combination of `u` and `v` flag
2022-07-26 10:42:06 -07:00
Mathias Bynens
67160e94a9
Remove duplicate entries from nonMatchStrings
...
https://github.com/mathiasbynens/unicode-property-escapes-tests/pull/12
2022-07-12 19:21:53 -07:00
Mathias Bynens
33ea5b6439
Move folder around
2022-07-12 19:21:53 -07:00
Mathias Bynens
d361217eb7
Add tests for RegExp set notation
...
Set notation and extended character class functionality is part of the RegExp `v` flag proposal: https://github.com/tc39/proposal-regexp-set-notation
Issue: https://github.com/tc39/test262/issues/3496 , https://github.com/tc39/proposal-regexp-set-notation/issues/52
2022-07-12 19:21:53 -07:00
Jordan Harband
28b31c0bf1
use isConstructor
assertion in "non-constructor" tests
2022-04-27 12:23:50 -04:00
Mathias Bynens
489a9f8d52
Add tests for \p{…} with properties of strings
...
This functionality is part of the RegExp `v` flag proposal: https://github.com/tc39/proposal-regexp-set-notation
2022-01-04 09:31:37 -05:00
Neil Dhar
ba82d46238
Add annotations for named capture groups in match indices tests
2021-10-25 09:19:54 -04:00
Rick Waldron
c44eeadcae
Transform compareArray -> assert.compareArray: test/built-ins/RegExp/**/*.js ( #3234 )
2021-10-05 22:40:39 -04:00
Mike Pennisi
d9ddf80479
Revert "Merge pull request #3219 from tc39/rwaldron/migrate-comparearray"
...
This reverts commit b690cb67be9b487eb10156c03e2c00869e88cc9d, reversing
changes made to 50dd431dffe5cf86e9064a652d6b01dbbe542cf0. This is
necessary because the reverted changeset reduced coverage by an unknown
extent.
2021-10-01 10:18:47 -04:00
Mathias Bynens
04ad519be9
Update RegExp property tests per Unicode v14 ( #3199 )
...
Issue: https://github.com/tc39/ecma262/issues/2514
2021-09-30 11:48:47 -04:00
rwaldron
4847d9db5a
chore: update test/**/*.js to use assert.compareArray wherever applicable
2021-09-24 12:58:15 -04:00
Richard Gibson
30eca7761b
Add assertion messages
2021-09-13 10:09:42 -04:00
Richard Gibson
1a655779f0
Test lastIndex overwrite with big lastIndex
2021-09-13 10:09:42 -04:00
rwaldron
717bcbaedd
Transform legacy format to harness assertions: test/built-ins/R*/**/*.js
2021-09-02 11:34:06 -07:00
Rick Waldron
ee3597ed57
chore: migrate $ERROR -> throw new Test262Error in test/built-ins/RegExp ( #3092 )
2021-07-28 13:49:34 -07:00
Ron Buckton
0d922ddc97
Fix lint error
2021-02-25 11:03:39 -05:00
Ron Buckton
64ea2d19e6
rename no-indices-array test
2021-02-25 11:03:39 -05:00
Ron Buckton
d66f270313
PR Feedback
2021-02-25 11:03:39 -05:00
Ron Buckton
a567e4c819
Updates to regexp-match-indices tests based on d-flag
2021-02-25 11:03:39 -05:00
Gus Caplan
1d31345a70
fixup
2020-10-08 18:05:00 -04:00
Gus Caplan
881c9e3ba5
move __proto__ tests
2020-10-08 18:05:00 -04:00
Rick Waldron
d576baf73f
Info: adds "sec-evaluatenew" step to info for all "not-a-constructor.js" tests.
2020-10-06 12:01:34 -04:00
Rick Waldron
8aacff591c
Standardize built-in constructor testing
2020-10-06 12:01:34 -04:00
Rick Waldron
c644ede430
Built-in function objects that are not identified as constructors must throw a TypeError exception when new'ed. Fixes gh-1739
2020-10-06 12:01:34 -04:00
Alexey Shvayka
323905b70e
Improve RegExp.prototype[@@replace] poisoned stdlib test
2020-09-10 16:24:23 -04:00
Alexey Shvayka
54ef2ae71d
Test RegExp.prototype.toString called as top-level function
2020-09-09 14:34:20 -04:00
Alexey Shvayka
7a4b88e446
Add null
named capture coercion test case
2020-04-23 10:48:48 -04:00
Alexey Shvayka
6de6484e21
Add functional replacement test
2020-04-23 10:48:48 -04:00
Alexey Shvayka
a6f3449cd8
Add string replacement test
2020-04-23 10:48:48 -04:00
Alexey Shvayka
eca34edd7e
Drop "the" and align license headers
2020-04-23 10:48:16 -04:00
Alexey Shvayka
3b5845afe7
Add invalid non-Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
b0995ea174
Add invalid Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
fd18971545
Add valid non-Unicode test
2020-04-23 10:48:16 -04:00
Alexey Shvayka
1991c24d91
Add valid Unicode test
2020-04-23 10:48:16 -04:00
Gus Caplan
1d513c3a50
Update indices-groups-object.js
2020-04-18 17:04:51 -04:00
Gus Caplan
a799a4ac23
Sort out __proto__ occurances outside of annexB
2020-04-18 17:04:51 -04:00
Michaël Zasso
e1fb459313
Use slice in RegExp lookBehind test
...
This change allows the test to be run on engines that do not implement
Annex B.
2020-04-18 13:26:52 -04:00
Alexey Shvayka
1e63ce0eae
Improve String.prototype.@@replace poisoned stdlib test
2020-03-25 11:59:43 -04:00
Alexey Shvayka
9b71a7cada
Fix inconsistent indentation in YAML
2020-03-25 11:59:43 -04:00
Alexey Shvayka
dc21d6b0a4
Add "lastIndex" restore test
2020-03-23 14:34:16 -04:00
Alexey Shvayka
fe2dfe9525
Add "lastIndex" init test
2020-03-23 14:34:16 -04:00
Alexey Shvayka
b59d07937a
Add note on arbitrary large integer
2020-03-23 14:30:51 -04:00
Alexey Shvayka
669250d098
RegExp: Test Quantifier with large integer
2020-03-23 14:30:51 -04:00
Alexey Shvayka
8dccb69cc0
Replace "\b" with "\u0008"
2020-03-23 14:30:17 -04:00
Alexey Shvayka
2377131fd7
Test \b escape inside CharacterClass in Unicode RegExp
2020-03-23 14:30:17 -04:00