aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStuart Sierra <mail@stuartsierra.com>2011-01-08 16:47:23 -0500
committerStuart Sierra <mail@stuartsierra.com>2011-01-08 16:47:23 -0500
commit7c400834e62366091c46234d879a92c32cf7a38e (patch)
tree7b4d5c09c01fe861113dbc2d7f474f8f6324cc99
parentea62e3ec4c3a3b977b672ed19cc5cba999f1f700 (diff)
Add test for bigints in JSON
-rw-r--r--modules/json/src/test/clojure/clojure/contrib/test_json.clj3
1 files changed, 3 insertions, 0 deletions
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))))