diff options
Diffstat (limited to 'json/tests/draft3/optional/jsregex.json')
-rw-r--r-- | json/tests/draft3/optional/jsregex.json | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/json/tests/draft3/optional/jsregex.json b/json/tests/draft3/optional/jsregex.json new file mode 100644 index 0000000..03fe977 --- /dev/null +++ b/json/tests/draft3/optional/jsregex.json @@ -0,0 +1,18 @@ +[ + { + "description": "ECMA 262 regex dialect recognition", + "schema": { "format": "regex" }, + "tests": [ + { + "description": "[^] is a valid regex", + "data": "[^]", + "valid": true + }, + { + "description": "ECMA 262 has no support for lookbehind", + "data": "(?<=foo)bar", + "valid": false + } + ] + } +] |