Skip to content

Commit dd5a496

Browse files
authored
feat: incorporate JSON test data into perf tests and add new test cases
1 parent 949f73b commit dd5a496

2 files changed

Lines changed: 8 additions & 8 deletions

File tree

‎tests/_data/invalid_syntax.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2131,4 +2131,4 @@
21312131
"reason": "Only three octets"
21322132
}
21332133
]
2134-
}
2134+
}

‎tests/_data/valid_syntax.json‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,37 +160,37 @@
160160
"reason": ""
161161
},
162162
{
163-
"value": "ucschar/ -퟿/豈-﷏/ﷰ-￯",
163+
"value": "ucschar/\u00A0-\uD7FF/\uF900-\uFDCF/\uFDF0-\uFFEF",
164164
"expect_lark": true,
165165
"reason": "`ucschar` ranges: %xA0-D7FF / %xF900-FDCF / %xFDF0-FFEF"
166166
},
167167
{
168-
"value": "ucschar/𐀀-🿽/𠀀-𯿽/𰀀-𿿽",
168+
"value": "ucschar/\uD800\uDC00-\uD83F\uDFFD/\uD840\uDC00-\uD87F\uDFFD/\uD880\uDC00-\uD8BF\uDFFD",
169169
"expect_lark": true,
170170
"reason": "`ucschar` ranges: %x10000-1FFFD / %x20000-2FFFD / %x30000-3FFFD"
171171
},
172172
{
173-
"value": "ucschar/񀀀-񏿽/񐀀-񟿽/񠀀-񯿽",
173+
"value": "ucschar/\uD8C0\uDC00-\uD8FF\uDFFD/\uD900\uDC00-\uD93F\uDFFD/\uD940\uDC00-\uD97F\uDFFD",
174174
"expect_lark": true,
175175
"reason": "`ucschar` ranges: %x40000-4FFFD / %x50000-5FFFD / %x60000-6FFFD"
176176
},
177177
{
178-
"value": "ucschar/񰀀-񿿽/򀀀-򏿽/򐀀-򟿽",
178+
"value": "ucschar/\uD980\uDC00-\uD9BF\uDFFD/\uD9C0\uDC00-\uD9FF\uDFFD/\uDA00\uDC00-\uDA3F\uDFFD",
179179
"expect_lark": true,
180180
"reason": "`ucschar` ranges: %x70000-7FFFD / %x80000-8FFFD / %x90000-9FFFD"
181181
},
182182
{
183-
"value": "ucschar/򠀀-򯿽/򰀀-򿿽/󀀀-󏿽",
183+
"value": "ucschar/\uDA40\uDC00-\uDA7F\uDFFD/\uDA80\uDC00-\uDABF\uDFFD/\uDAC0\uDC00-\uDAFF\uDFFD",
184184
"expect_lark": true,
185185
"reason": "`ucschar` ranges: %xA0000-AFFFD / %xB0000-BFFFD / %xC0000-CFFFD"
186186
},
187187
{
188-
"value": "ucschar/󐀀-󟿽/󠀀-󯿽",
188+
"value": "ucschar/\uDB00\uDC00-\uDB3F\uDFFD/\uDB40\uDC00-\uDB7F\uDFFD",
189189
"expect_lark": true,
190190
"reason": "`ucschar` ranges: %xD0000-DFFFD / %xE0000-EFFFD"
191191
},
192192
{
193-
"value": "iprivate?foo=-&bar=󰀀-󿿽&baz=􀀀-􏿽",
193+
"value": "iprivate?foo=\uE000-\uF8FF&bar=\uDB80\uDC00-\uDBBF\uDFFD&baz=\uDBC0\uDC00-\uDBFF\uDFFD",
194194
"expect_lark": true,
195195
"reason": "`iprivate` ranges: %xE000-F8FF / %xF0000-FFFFD / %x100000-10FFFD"
196196
},

0 commit comments

Comments
 (0)