summaryrefslogtreecommitdiff
path: root/json/tests/draft7/enum.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft7/enum.json')
-rw-r--r--json/tests/draft7/enum.json16
1 files changed, 16 insertions, 0 deletions
diff --git a/json/tests/draft7/enum.json b/json/tests/draft7/enum.json
index 0191b55..6844578 100644
--- a/json/tests/draft7/enum.json
+++ b/json/tests/draft7/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
+ }
+ ]
}
]