Skip to content

Commit 813acfc

Browse files
committed
Update deps, add test cases for duration from #5
1 parent bf6ae11 commit 813acfc

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

project.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
:license {:name "Eclipse Public License"
55
:url "http://www.eclipse.org/legal/epl-v10.html"}
66
:dependencies [[org.clojure/clojure "1.7.0-RC1"]
7-
[org.clojure/clojurescript "0.0-3297"]
7+
[org.clojure/clojurescript "0.0-3308"]
88
[prismatic/schema "0.4.3"]
9-
[cheshire "5.4.0"]
9+
[cheshire "5.5.0"]
1010
[org.clojure/core.match "0.3.0-alpha4"]
1111
[com.taoensso/tower "3.1.0-beta3"]]
1212
:exclusions [[org.clojure/clojure]

spec/cljx/xapi_schema/schemata/regex_spec.cljx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,10 @@
6262

6363
(describe "DurationRegEx"
6464
(it "matches ISO durations"
65-
(should (re-matches DurationRegEx "P3Y6M4DT12H30M5S"))))
65+
(should (re-matches DurationRegEx "P3Y6M4DT12H30M5S"))
66+
(should (re-matches DurationRegEx "P23DT122.34S"))
67+
(should-not (re-matches DurationRegEx "PT"))
68+
(should-not (re-matches DurationRegEx "P10.3DT1.7S"))))
6669

6770
(describe "Base64RegEx"
6871
(it "matches Base64 encoded stuff"

0 commit comments

Comments
 (0)