Skip to content

Commit 904edb2

Browse files
committed
test for fractional durations
1 parent d651f36 commit 904edb2

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

spec/cljx/xapi_schema/schemata/json_spec.cljx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,10 +133,13 @@
133133
(it "is a valid ISO 8601 Duration"
134134
(should-satisfy+ Duration
135135
"P3Y6M4DT12H30M5S"
136+
"P3Y6M4DT12H30M5.2S" ;; good fractional
136137
:bad
137138
"2 hours"
138139
"P"
139-
"PT")))
140+
"PT"
141+
"P3Y6M4DT12H30.1M5S" ;; bad fractional
142+
)))
140143

141144
(describe
142145
"Version"

0 commit comments

Comments
 (0)