diff options
-rw-r--r-- | json/README.md | 4 | ||||
-rw-r--r-- | json/tests/draft3/maxLength.json | 5 | ||||
-rw-r--r-- | json/tests/draft3/minLength.json | 5 | ||||
-rw-r--r-- | json/tests/draft4/maxLength.json | 5 | ||||
-rw-r--r-- | json/tests/draft4/minLength.json | 5 |
5 files changed, 24 insertions, 0 deletions
diff --git a/json/README.md b/json/README.md index 6b33726..12c49c0 100644 --- a/json/README.md +++ b/json/README.md @@ -83,3 +83,7 @@ Contributing ------------ If you see something missing or incorrect, a pull request is most welcome! + +There are some sanity checks in place for testing the test suite. You can run +them with `bin/jsonschema_suite check`. They will be run automatically by +[Travis CI](https://travis-ci.org/) as well. diff --git a/json/tests/draft3/maxLength.json b/json/tests/draft3/maxLength.json index 561767b..4de42bc 100644 --- a/json/tests/draft3/maxLength.json +++ b/json/tests/draft3/maxLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 10, "valid": true + }, + { + "description": "two supplementary Unicode code points is long enough", + "data": "\uD83D\uDCA9\uD83D\uDCA9", + "valid": true } ] } diff --git a/json/tests/draft3/minLength.json b/json/tests/draft3/minLength.json index e9c14b1..3f09158 100644 --- a/json/tests/draft3/minLength.json +++ b/json/tests/draft3/minLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 1, "valid": true + }, + { + "description": "one supplementary Unicode code point is not long enough", + "data": "\uD83D\uDCA9", + "valid": false } ] } diff --git a/json/tests/draft4/maxLength.json b/json/tests/draft4/maxLength.json index 561767b..4de42bc 100644 --- a/json/tests/draft4/maxLength.json +++ b/json/tests/draft4/maxLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 10, "valid": true + }, + { + "description": "two supplementary Unicode code points is long enough", + "data": "\uD83D\uDCA9\uD83D\uDCA9", + "valid": true } ] } diff --git a/json/tests/draft4/minLength.json b/json/tests/draft4/minLength.json index e9c14b1..3f09158 100644 --- a/json/tests/draft4/minLength.json +++ b/json/tests/draft4/minLength.json @@ -22,6 +22,11 @@ "description": "ignores non-strings", "data": 1, "valid": true + }, + { + "description": "one supplementary Unicode code point is not long enough", + "data": "\uD83D\uDCA9", + "valid": false } ] } |