Permalink
Browse files

whitespace

  • Loading branch information...
1 parent 96c63c2 commit 84c6fbe1fa83616d52a8e696cb66135cb5d9feb9 @dakrone committed Dec 12, 2012
Showing with 5 additions and 4 deletions.
  1. +2 −2 src/cheshire/factory.clj
  2. +3 −2 test/cheshire/test/custom.clj
View
@@ -72,10 +72,10 @@
(boolean (:canonicalize-field-names opts))))))
(defonce ^JsonFactory json-factory (make-json-factory default-factory-options))
-(defonce ^SmileFactory smile-factory (make-smile-factory default-factory-options))
+(defonce ^SmileFactory smile-factory
+ (make-smile-factory default-factory-options))
;; dynamically rebindable json factory, if desired
(def ^{:dynamic true :tag JsonFactory} *json-factory* nil)
;; dynamically rebindable smile factory, if desired
(def ^{:dynamic true :tag SmileFactory} *smile-factory* nil)
-
@@ -177,7 +177,9 @@
(deftest test-array-coerce-fn
(is (= {"set" #{"a" "b"} "array" ["a" "b"] "map" {"a" 1}}
(json/decode
- (json/encode* {"set" #{"a" "b"} "array" ["a" "b"] "map" {"a" 1}}) false
+ (json/encode* {"set" #{"a" "b"}
+ "array" ["a" "b"]
+ "map" {"a" 1}}) false
(fn [field-name] (if (= "set" field-name) #{} []))))))
(deftest t-symbol-encoding-for-non-resolvable-symbols
@@ -235,4 +237,3 @@
(json/add-encoder java.util.Date json/encode-date)
(is (json/encode (java.util.Date.))
"shouldn't throw an exception after adding back the default."))
-

0 comments on commit 84c6fbe

Please sign in to comment.