summaryrefslogtreecommitdiff
path: root/tests/draft4/optional
diff options
context:
space:
mode:
Diffstat (limited to 'tests/draft4/optional')
-rw-r--r--tests/draft4/optional/format/date-time.json10
-rw-r--r--tests/draft4/optional/format/ipv4.json5
-rw-r--r--tests/draft4/optional/format/ipv6.json10
3 files changed, 25 insertions, 0 deletions
diff --git a/tests/draft4/optional/format/date-time.json b/tests/draft4/optional/format/date-time.json
index 900fcb7..5f911ef 100644
--- a/tests/draft4/optional/format/date-time.json
+++ b/tests/draft4/optional/format/date-time.json
@@ -57,6 +57,16 @@
"description": "invalid non-padded day dates",
"data": "1963-06-1T08:30:06.283185Z",
"valid": false
+ },
+ {
+ "description": "non-ascii digits should be rejected in the date portion",
+ "data": "1963-06-1৪T00:00:00Z",
+ "valid": false
+ },
+ {
+ "description": "non-ascii digits should be rejected in the time portion",
+ "data": "1963-06-11T0৪:00:00Z",
+ "valid": false
}
]
}
diff --git a/tests/draft4/optional/format/ipv4.json b/tests/draft4/optional/format/ipv4.json
index e36a381..4d10927 100644
--- a/tests/draft4/optional/format/ipv4.json
+++ b/tests/draft4/optional/format/ipv4.json
@@ -43,6 +43,11 @@
"description": "value without leading zero is valid",
"data": "87.10.0.1",
"valid": true
+ },
+ {
+ "description": "non-ascii digits should be rejected",
+ "data": "1২7.0.0.1",
+ "valid": false
}
]
}
diff --git a/tests/draft4/optional/format/ipv6.json b/tests/draft4/optional/format/ipv6.json
index 2a08cb4..cf629c6 100644
--- a/tests/draft4/optional/format/ipv6.json
+++ b/tests/draft4/optional/format/ipv6.json
@@ -147,6 +147,16 @@
"description": "a long invalid ipv6, below length limit, second",
"data": "100:100:100:100:100:100:100:255.255.255.255",
"valid": false
+ },
+ {
+ "description": "non-ascii digits should be rejected",
+ "data": "1:2:3:4:5:6:7:৪",
+ "valid": false
+ },
+ {
+ "description": "non-ascii digits should be rejected in the ipv4 portion also",
+ "data": "1:2::192.16৪.0.1",
+ "valid": false
}
]
}