From 7c400834e62366091c46234d879a92c32cf7a38e Mon Sep 17 00:00:00 2001 From: Stuart Sierra Date: Sat, 8 Jan 2011 16:47:23 -0500 Subject: Add test for bigints in JSON --- modules/json/src/test/clojure/clojure/contrib/test_json.clj | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/json/src/test/clojure/clojure/contrib/test_json.clj b/modules/json/src/test/clojure/clojure/contrib/test_json.clj index df3409ec..ccd38969 100644 --- a/modules/json/src/test/clojure/clojure/contrib/test_json.clj +++ b/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)))) -- cgit v1.2.3-18-g5258