Skip to content

Commit

Permalink
Tests for namespaced tags and default-tag-parser
Browse files Browse the repository at this point in the history
  • Loading branch information
thickey authored and David Nolen committed Dec 22, 2012
1 parent 47bc8f0 commit 19d265d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/cljs/cljs/reader_test.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,14 @@

(assert (= [1 2] (reader/read-string "#foo [1 2]")))

;; tag elements with prefix component
(reader/register-tag-parser! 'foo.bar/baz identity)
(assert (= [1 2] (reader/read-string "#foo.bar/baz [1 2]")))

;; default tag parser
(reader/register-default-tag-parser! (fn [tag val] val))
(assert (= [1 2] (reader/read-string "#a.b/c [1 2]")))

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Unicode Tests

Expand Down

0 comments on commit 19d265d

Please sign in to comment.