Cover conversion of booleans separately
This commit is contained in:
parent
76efdc7e7b
commit
53854254e4
2 changed files with 11 additions and 1 deletions
|
|
@ -43,4 +43,4 @@
|
||||||
"sonatype-snapshots" {:url "http://oss.sonatype.org/content/repositories/snapshots"
|
"sonatype-snapshots" {:url "http://oss.sonatype.org/content/repositories/snapshots"
|
||||||
:snapshots true
|
:snapshots true
|
||||||
:releases {:checksum :fail :update :always}}}
|
:releases {:checksum :fail :update :always}}}
|
||||||
:warn-on-reflection true)
|
:aot [monger.conversion])
|
||||||
|
|
|
||||||
|
|
@ -35,6 +35,16 @@
|
||||||
output (to-db-object input)]
|
output (to-db-object input)]
|
||||||
(is (= input output))))
|
(is (= input output))))
|
||||||
|
|
||||||
|
(deftest convert-boolean-true-to-dbobject
|
||||||
|
(let [input true
|
||||||
|
output (to-db-object input)]
|
||||||
|
(is (= input output))))
|
||||||
|
|
||||||
|
(deftest convert-boolean-false-to-dbobject
|
||||||
|
(let [input false
|
||||||
|
output (to-db-object input)]
|
||||||
|
(is (= input output))))
|
||||||
|
|
||||||
|
|
||||||
(deftest convert-map-to-dbobject
|
(deftest convert-map-to-dbobject
|
||||||
(let [input { :int 1, :string "Mongo", :float 22.23 }
|
(let [input { :int 1, :string "Mongo", :float 22.23 }
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue