Browse files

Add test for bigints in JSON

  • Loading branch information...
1 parent ea62e3e commit 7c400834e62366091c46234d879a92c32cf7a38e @stuartsierra stuartsierra committed Jan 8, 2011
Showing with 3 additions and 0 deletions.
  1. +3 −0 modules/json/src/test/clojure/clojure/contrib/test_json.clj
View
3 modules/json/src/test/clojure/clojure/contrib/test_json.clj
@@ -153,6 +153,9 @@
(deftest can-print-ratios-as-doubles
(is (= "0.75" (json-str 3/4))))
+(deftest can-print-bigints
+ (is (= "12345678901234567890" (json-str 12345678901234567890))))
+
(deftest can-print-json-arrays
(is (= "[1,2,3]" (json-str [1 2 3])))
(is (= "[1,2,3]" (json-str (list 1 2 3))))

0 comments on commit 7c40083

Please sign in to comment.