Skip to content

Commit c4d3e0f

Browse files
authored
Merge pull request #333 from zhxiaogg/tests-for-duration-format
added tests for duration format
2 parents 22eaffc + 618b30d commit c4d3e0f

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
[
2+
{
3+
"description": "validation of duration strings",
4+
"schema": {"format": "duration"},
5+
"tests": [
6+
{
7+
"description": "a valid duration string",
8+
"data": "P4DT12H30M5S",
9+
"valid": true
10+
},
11+
{
12+
"description": "an invalid duration string",
13+
"data": "PT1D",
14+
"valid": false
15+
}
16+
]
17+
}
18+
]

0 commit comments

Comments
 (0)