Skip to content

Commit

Permalink
* test/cljs/cljs/reader_test.cljs: test for read-symbol fix
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 11, 2012
1 parent 019c3f9 commit d62b829
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/cljs/cljs/reader_test.cljs
Expand Up @@ -15,6 +15,7 @@
(assert (= '(7 8 9) (reader/read-string "(7 8 9)")))
(assert (= '(deref foo) (reader/read-string "@foo")))
(assert (= '(quote bar) (reader/read-string "'bar")))
(assert (= 'foo/bar (reader/read-string "foo/bar")))
(assert (= \a (reader/read-string "\\a")))
(assert (= {:tag 'String} (meta (reader/read-string "^String {:a 1}"))))
(assert (= [:a 'b #{'c {:d [:e :f :g]}}]
Expand All @@ -25,5 +26,5 @@
(assert (= false (reader/read-string "false")))
(assert (= "string" (reader/read-string "\"string\"")))
(assert (= "escape chars \t \r \n \\ \" \b \f" (reader/read-string "\"escape chars \\t \\r \\n \\\\ \\\" \\b \\f\"")))

:ok)

0 comments on commit d62b829

Please sign in to comment.