summaryrefslogtreecommitdiff
path: root/tests/draft7/optional/format/idn-hostname.json
diff options
context:
space:
mode:
Diffstat (limited to 'tests/draft7/optional/format/idn-hostname.json')
-rw-r--r--tests/draft7/optional/format/idn-hostname.json34
1 files changed, 32 insertions, 2 deletions
diff --git a/tests/draft7/optional/format/idn-hostname.json b/tests/draft7/optional/format/idn-hostname.json
index 7f10bd8..6c8f86a 100644
--- a/tests/draft7/optional/format/idn-hostname.json
+++ b/tests/draft7/optional/format/idn-hostname.json
@@ -1,9 +1,39 @@
[
{
"description": "validation of internationalized host names",
- "schema": {"format": "idn-hostname"},
+ "schema": { "format": "idn-hostname" },
"tests": [
{
+ "description": "all string formats ignore integers",
+ "data": 12,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore floats",
+ "data": 13.7,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore objects",
+ "data": {},
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore arrays",
+ "data": [],
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore booleans",
+ "data": false,
+ "valid": true
+ },
+ {
+ "description": "all string formats ignore nulls",
+ "data": null,
+ "valid": true
+ },
+ {
"description": "a valid host name (example.test in Hangul)",
"data": "실례.테스트",
"valid": true
@@ -91,7 +121,7 @@
},
{
"description": "Exceptions that are PVALID, right-to-left chars",
- "comment": "https://tools.ietf.org/html/rfc/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
+ "comment": "https://tools.ietf.org/html/rfc5891#section-4.2.2 https://tools.ietf.org/html/rfc5892#section-2.6",
"data": "\u06fd\u06fe",
"valid": true
},