diff options
author | Stuart Sierra <mail@stuartsierra.com> | 2011-01-08 16:47:23 -0500 |
---|---|---|
committer | Stuart Sierra <mail@stuartsierra.com> | 2011-01-08 16:47:23 -0500 |
commit | 7c400834e62366091c46234d879a92c32cf7a38e (patch) | |
tree | 7b4d5c09c01fe861113dbc2d7f474f8f6324cc99 | |
parent | ea62e3ec4c3a3b977b672ed19cc5cba999f1f700 (diff) |
Add test for bigints in JSON
-rw-r--r-- | modules/json/src/test/clojure/clojure/contrib/test_json.clj | 3 |
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)))) |