Skip to content

Commit c00a3f9

Browse files
test: duration format must start with P
1 parent 9fc880b commit c00a3f9

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

tests/draft-next/optional/format/duration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"data": "PT1D",
4747
"valid": false
4848
},
49+
{
50+
"description": "must start with P",
51+
"data": "4DT12H30M5S",
52+
"valid": false
53+
},
4954
{
5055
"description": "no elements present",
5156
"data": "P",

tests/draft2019-09/optional/format/duration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"data": "PT1D",
4747
"valid": false
4848
},
49+
{
50+
"description": "must start with P",
51+
"data": "4DT12H30M5S",
52+
"valid": false
53+
},
4954
{
5055
"description": "no elements present",
5156
"data": "P",

tests/draft2020-12/optional/format/duration.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,11 @@
4646
"data": "PT1D",
4747
"valid": false
4848
},
49+
{
50+
"description": "must start with P",
51+
"data": "4DT12H30M5S",
52+
"valid": false
53+
},
4954
{
5055
"description": "no elements present",
5156
"data": "P",

0 commit comments

Comments
 (0)