Skip to content

Commit

Permalink
test: updates test cases extracted from test262 (#202)
Browse files Browse the repository at this point in the history
Co-authored-by: ota-meshi <16508807+ota-meshi@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and ota-meshi authored Sep 29, 2024
1 parent 4d4787a commit 5dcba6b
Show file tree
Hide file tree
Showing 3 changed files with 403 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,170 @@
{
"_test262FileNames": [
"test/built-ins/String/prototype/match/regexp-prototype-match-v-flag.js"
],
"options": {},
"patterns": {
"/./gv": {
"ast": {
"type": "RegExpLiteral",
"parent": null,
"start": 0,
"end": 5,
"raw": "/./gv",
"pattern": {
"type": "Pattern",
"parent": "♻️..",
"start": 1,
"end": 2,
"raw": ".",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 1,
"end": 2,
"raw": ".",
"elements": [
{
"type": "CharacterSet",
"parent": "♻️../..",
"start": 1,
"end": 2,
"raw": ".",
"kind": "any"
}
]
}
]
},
"flags": {
"type": "Flags",
"parent": "♻️..",
"start": 3,
"end": 5,
"raw": "gv",
"global": true,
"ignoreCase": false,
"multiline": false,
"unicode": false,
"sticky": false,
"dotAll": false,
"hasIndices": false,
"unicodeSets": true
}
}
},
"/\\p{Script=Han}/gv": {
"ast": {
"type": "RegExpLiteral",
"parent": null,
"start": 0,
"end": 18,
"raw": "/\\p{Script=Han}/gv",
"pattern": {
"type": "Pattern",
"parent": "♻️..",
"start": 1,
"end": 15,
"raw": "\\p{Script=Han}",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 1,
"end": 15,
"raw": "\\p{Script=Han}",
"elements": [
{
"type": "CharacterSet",
"parent": "♻️../..",
"start": 1,
"end": 15,
"raw": "\\p{Script=Han}",
"kind": "property",
"strings": false,
"key": "Script",
"value": "Han",
"negate": false
}
]
}
]
},
"flags": {
"type": "Flags",
"parent": "♻️..",
"start": 16,
"end": 18,
"raw": "gv",
"global": true,
"ignoreCase": false,
"multiline": false,
"unicode": false,
"sticky": false,
"dotAll": false,
"hasIndices": false,
"unicodeSets": true
}
}
},
"/𠮷/g": {
"ast": {
"type": "RegExpLiteral",
"parent": null,
"start": 0,
"end": 5,
"raw": "/𠮷/g",
"pattern": {
"type": "Pattern",
"parent": "♻️..",
"start": 1,
"end": 3,
"raw": "𠮷",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 1,
"end": 3,
"raw": "𠮷",
"elements": [
{
"type": "Character",
"parent": "♻️../..",
"start": 1,
"end": 2,
"raw": "\ud842",
"value": 55362
},
{
"type": "Character",
"parent": "♻️../..",
"start": 2,
"end": 3,
"raw": "\udfb7",
"value": 57271
}
]
}
]
},
"flags": {
"type": "Flags",
"parent": "♻️..",
"start": 4,
"end": 5,
"raw": "g",
"global": true,
"ignoreCase": false,
"multiline": false,
"unicode": false,
"sticky": false,
"dotAll": false,
"hasIndices": false,
"unicodeSets": false
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
{
"_test262FileNames": [
"test/built-ins/String/prototype/matchAll/regexp-prototype-matchAll-v-flag.js"
],
"options": {},
"patterns": {
"/(?:)/gv": {
"ast": {
"type": "RegExpLiteral",
"parent": null,
"start": 0,
"end": 8,
"raw": "/(?:)/gv",
"pattern": {
"type": "Pattern",
"parent": "♻️..",
"start": 1,
"end": 5,
"raw": "(?:)",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 1,
"end": 5,
"raw": "(?:)",
"elements": [
{
"type": "Group",
"parent": "♻️../..",
"start": 1,
"end": 5,
"raw": "(?:)",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 4,
"end": 4,
"raw": "",
"elements": []
}
]
}
]
}
]
},
"flags": {
"type": "Flags",
"parent": "♻️..",
"start": 6,
"end": 8,
"raw": "gv",
"global": true,
"ignoreCase": false,
"multiline": false,
"unicode": false,
"sticky": false,
"dotAll": false,
"hasIndices": false,
"unicodeSets": true
}
}
},
"/𠮷/gv": {
"ast": {
"type": "RegExpLiteral",
"parent": null,
"start": 0,
"end": 6,
"raw": "/𠮷/gv",
"pattern": {
"type": "Pattern",
"parent": "♻️..",
"start": 1,
"end": 3,
"raw": "𠮷",
"alternatives": [
{
"type": "Alternative",
"parent": "♻️../..",
"start": 1,
"end": 3,
"raw": "𠮷",
"elements": [
{
"type": "Character",
"parent": "♻️../..",
"start": 1,
"end": 3,
"raw": "𠮷",
"value": 134071
}
]
}
]
},
"flags": {
"type": "Flags",
"parent": "♻️..",
"start": 4,
"end": 6,
"raw": "gv",
"global": true,
"ignoreCase": false,
"multiline": false,
"unicode": false,
"sticky": false,
"dotAll": false,
"hasIndices": false,
"unicodeSets": true
}
}
}
}
}
Loading

0 comments on commit 5dcba6b

Please sign in to comment.