diff options
Diffstat (limited to 'json/tests/draft4/enum.json')
-rw-r--r-- | json/tests/draft4/enum.json | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft4/enum.json b/json/tests/draft4/enum.json index 0191b55..6844578 100644 --- a/json/tests/draft4/enum.json +++ b/json/tests/draft4/enum.json @@ -206,5 +206,21 @@ "valid": true } ] + }, + { + "description": "nul characters in strings", + "schema": { "enum": [ "hello\u0000there" ] }, + "tests": [ + { + "description": "match string with nul", + "data": "hello\u0000there", + "valid": true + }, + { + "description": "do not match string lacking nul", + "data": "hellothere", + "valid": false + } + ] } ] |