Skip to content

Commit 8ef1550

Browse files
Merge pull request #751 from big-andy-coates/format_tests_under_format
All format test cases should be under the `format` directory.
2 parents 9fc880b + fe1b139 commit 8ef1550

File tree

5 files changed

+32
-28
lines changed

5 files changed

+32
-28
lines changed

tests/draft-next/optional/ecmascript-regex.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,6 @@
405405
}
406406
]
407407
},
408-
{
409-
"description": "\\a is not an ECMA 262 control escape",
410-
"schema": {
411-
"$schema": "https://json-schema.org/draft/next/schema",
412-
"format": "regex"
413-
},
414-
"tests": [
415-
{
416-
"description": "when used as a pattern",
417-
"data": "\\a",
418-
"valid": false
419-
}
420-
]
421-
},
422408
{
423409
"description": "pattern with non-ASCII digits",
424410
"schema": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"description": "\\a is not an ECMA 262 control escape",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/next/schema",
6+
"format": "regex"
7+
},
8+
"tests": [
9+
{
10+
"description": "when used as a pattern",
11+
"data": "\\a",
12+
"valid": false
13+
}
14+
]
15+
}
16+
]

tests/draft2020-12/optional/ecmascript-regex.json

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -405,20 +405,6 @@
405405
}
406406
]
407407
},
408-
{
409-
"description": "\\a is not an ECMA 262 control escape",
410-
"schema": {
411-
"$schema": "https://json-schema.org/draft/2020-12/schema",
412-
"format": "regex"
413-
},
414-
"tests": [
415-
{
416-
"description": "when used as a pattern",
417-
"data": "\\a",
418-
"valid": false
419-
}
420-
]
421-
},
422408
{
423409
"description": "pattern with non-ASCII digits",
424410
"schema": {
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[
2+
{
3+
"description": "\\a is not an ECMA 262 control escape",
4+
"schema": {
5+
"$schema": "https://json-schema.org/draft/2020-12/schema",
6+
"format": "regex"
7+
},
8+
"tests": [
9+
{
10+
"description": "when used as a pattern",
11+
"data": "\\a",
12+
"valid": false
13+
}
14+
]
15+
}
16+
]

0 commit comments

Comments
 (0)