diff options
author | Julian Berman <Julian@GrayVines.com> | 2019-10-04 10:22:30 -0400 |
---|---|---|
committer | Julian Berman <Julian@GrayVines.com> | 2019-10-04 10:22:30 -0400 |
commit | 2e372f7b1b0d7b40a3999a23ef37d1884d7f4891 (patch) | |
tree | d26d35b81e50b0bdc456929e10b20468c35c6578 /json | |
parent | 41d82453873a8ac5ad7ef9cf4e81ee0161fad6b3 (diff) | |
parent | e62b64b3433d05bceb4a2059c2a13067040826bf (diff) | |
download | jsonschema-2e372f7b1b0d7b40a3999a23ef37d1884d7f4891.tar.gz |
Merge commit 'e62b64b3433d05bceb4a2059c2a13067040826bf'
* commit 'e62b64b3433d05bceb4a2059c2a13067040826bf':
Squashed 'json/' changes from 586515ef..2d554504
Diffstat (limited to 'json')
-rw-r--r-- | json/tests/draft2019-09/optional/ecmascript-regex.json | 19 | ||||
-rw-r--r-- | json/tests/draft4/optional/ecmascript-regex.json | 19 | ||||
-rw-r--r-- | json/tests/draft6/optional/ecmascript-regex.json | 19 | ||||
-rw-r--r-- | json/tests/draft7/optional/ecmascript-regex.json | 19 |
4 files changed, 76 insertions, 0 deletions
diff --git a/json/tests/draft2019-09/optional/ecmascript-regex.json b/json/tests/draft2019-09/optional/ecmascript-regex.json index 81643f8..7a0cb77 100644 --- a/json/tests/draft2019-09/optional/ecmascript-regex.json +++ b/json/tests/draft2019-09/optional/ecmascript-regex.json @@ -11,6 +11,25 @@ ] }, { + "description": "ECMA 262 regex $ does not match trailing newline", + "schema": { + "type": "string", + "pattern": "^abc$" + }, + "tests": [ + { + "description": "matches in Python, but should not in jsonschema", + "data": "abc\n", + "valid": false + }, + { + "description": "should match", + "data": "abc", + "valid": true + } + ] + }, + { "description": "ECMA 262 regex converts \\a to ascii BEL", "schema": { "type": "string", diff --git a/json/tests/draft4/optional/ecmascript-regex.json b/json/tests/draft4/optional/ecmascript-regex.json index 81643f8..7a0cb77 100644 --- a/json/tests/draft4/optional/ecmascript-regex.json +++ b/json/tests/draft4/optional/ecmascript-regex.json @@ -11,6 +11,25 @@ ] }, { + "description": "ECMA 262 regex $ does not match trailing newline", + "schema": { + "type": "string", + "pattern": "^abc$" + }, + "tests": [ + { + "description": "matches in Python, but should not in jsonschema", + "data": "abc\n", + "valid": false + }, + { + "description": "should match", + "data": "abc", + "valid": true + } + ] + }, + { "description": "ECMA 262 regex converts \\a to ascii BEL", "schema": { "type": "string", diff --git a/json/tests/draft6/optional/ecmascript-regex.json b/json/tests/draft6/optional/ecmascript-regex.json index 81643f8..7a0cb77 100644 --- a/json/tests/draft6/optional/ecmascript-regex.json +++ b/json/tests/draft6/optional/ecmascript-regex.json @@ -11,6 +11,25 @@ ] }, { + "description": "ECMA 262 regex $ does not match trailing newline", + "schema": { + "type": "string", + "pattern": "^abc$" + }, + "tests": [ + { + "description": "matches in Python, but should not in jsonschema", + "data": "abc\n", + "valid": false + }, + { + "description": "should match", + "data": "abc", + "valid": true + } + ] + }, + { "description": "ECMA 262 regex converts \\a to ascii BEL", "schema": { "type": "string", diff --git a/json/tests/draft7/optional/ecmascript-regex.json b/json/tests/draft7/optional/ecmascript-regex.json index 81643f8..7a0cb77 100644 --- a/json/tests/draft7/optional/ecmascript-regex.json +++ b/json/tests/draft7/optional/ecmascript-regex.json @@ -11,6 +11,25 @@ ] }, { + "description": "ECMA 262 regex $ does not match trailing newline", + "schema": { + "type": "string", + "pattern": "^abc$" + }, + "tests": [ + { + "description": "matches in Python, but should not in jsonschema", + "data": "abc\n", + "valid": false + }, + { + "description": "should match", + "data": "abc", + "valid": true + } + ] + }, + { "description": "ECMA 262 regex converts \\a to ascii BEL", "schema": { "type": "string", |