summaryrefslogtreecommitdiff
path: root/json/tests/draft-next/optional/format/time.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft-next/optional/format/time.json')
-rw-r--r--json/tests/draft-next/optional/format/time.json20
1 files changed, 20 insertions, 0 deletions
diff --git a/json/tests/draft-next/optional/format/time.json b/json/tests/draft-next/optional/format/time.json
index bb58091..0a000a4 100644
--- a/json/tests/draft-next/optional/format/time.json
+++ b/json/tests/draft-next/optional/format/time.json
@@ -42,6 +42,21 @@
"valid": true
},
{
+ "description": "invalid time string with extra leading zeros",
+ "data": "008:030:006Z",
+ "valid": false
+ },
+ {
+ "description": "invalid time string with no leading zero for single digit",
+ "data": "8:3:6Z",
+ "valid": false
+ },
+ {
+ "description": "hour, minute, second must be two digits",
+ "data": "8:0030:6Z",
+ "valid": false
+ },
+ {
"description": "a valid time string with leap second, Zulu",
"data": "23:59:60Z",
"valid": true
@@ -132,6 +147,11 @@
"valid": true
},
{
+ "description": "hour, minute in time-offset must be two digits",
+ "data": "08:30:06-8:000",
+ "valid": false
+ },
+ {
"description": "a valid time string with case-insensitive Z",
"data": "08:30:06z",
"valid": true