Skip to content

Commit

Permalink
Update fixtures.
Browse files Browse the repository at this point in the history
  • Loading branch information
bnjmnt4n committed Oct 20, 2019
1 parent a01453d commit 474a1e6
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 4 deletions.
6 changes: 6 additions & 0 deletions tests/test-data-lookbehind.json
Original file line number Diff line number Diff line change
Expand Up @@ -346,5 +346,11 @@
6
],
"raw": "(?<!.)"
},
"\\k": {
"type": "error",
"name": "SyntaxError",
"message": "atomEscape at position 1\n \\k\n ^",
"input": "\\k"
}
}
39 changes: 37 additions & 2 deletions tests/test-data-named-groups-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,43 @@
},
"(?<\\u{ffffff})": {
"type": "error",
"name": "SyntaxError",
"message": "Invalid escape sequence at position 3\n (?<\\u{ffffff})\n ^",
"name": "RangeError",
"message": "Invalid code point 16777215",
"input": "(?<\\u{ffffff})"
},
"(?<$𐒤>a)": {
"type": "group",
"behavior": "normal",
"body": [{
"type": "value",
"kind": "symbol",
"codePoint": 97,
"range": [7, 8],
"raw": "a"
}],
"range": [0, 9],
"raw": "(?<$𐒤>a)",
"name": {
"type": "identifier",
"value": "$𐒤",
"range": [
3,
6
],
"raw": "$𐒤"
}
},
"(?<\\u{102A7}Ƞ>)": {
"type": "group",
"behavior": "normal",
"body": [],
"range": [0, 15],
"raw": "(?<\\u{102A7}Ƞ>)",
"name": {
"type": "identifier",
"value": "𐊧Ƞ",
"range": [3, 13],
"raw": "\\u{102A7}Ƞ"
}
}
}
4 changes: 2 additions & 2 deletions tests/test-data-unicode-properties.json
Original file line number Diff line number Diff line change
Expand Up @@ -182,13 +182,13 @@
"\\p{}": {
"type": "error",
"name": "SyntaxError",
"message": "Expected atom at position 2\n \\p{}\n ^",
"message": "atomEscape at position 1\n \\p{}\n ^",
"input": "\\p{}"
},
"\\P{}": {
"type": "error",
"name": "SyntaxError",
"message": "Expected atom at position 2\n \\P{}\n ^",
"message": "atomEscape at position 1\n \\P{}\n ^",
"input": "\\P{}"
}
}
6 changes: 6 additions & 0 deletions tests/test-data-unicode.json
Original file line number Diff line number Diff line change
Expand Up @@ -898,5 +898,11 @@
"name": "SyntaxError",
"message": "Invalid escape sequence at position 1\n \\u{110000}\n ^",
"input": "\\u{110000}"
},
"\\a": {
"type": "error",
"name": "SyntaxError",
"message": "atomEscape at position 1\n \\a\n ^",
"input": "\\a"
}
}

0 comments on commit 474a1e6

Please sign in to comment.