Adding non-array tests for $nin and $in operators.
This commit is contained in:
parent
a2a8cde0ea
commit
d081a201da
1 changed files with 3 additions and 1 deletions
|
|
@ -79,7 +79,9 @@
|
|||
|
||||
(is (= "Scala" (:language (first (mgcol/find-maps collection { :tags { $all [ "functional" "object-oriented" ] } } )))))
|
||||
(is (= 3 (.count (mgcol/find-maps collection { :tags { $in [ "functional" "object-oriented" ] } } ))))
|
||||
(is (= 1 (.count (mgcol/find-maps collection { :tags { $nin [ "functional" ] } } ))))))
|
||||
(is (= 2 (.count (mgcol/find-maps collection { :language { $in [ "Scala" "Ruby" ] } } ))))
|
||||
(is (= 1 (.count (mgcol/find-maps collection { :tags { $nin [ "dynamic", "object-oriented" ] } } ))))
|
||||
(is (= 3 (.count (mgcol/find-maps collection { :language { $nin [ "C#" ] } } ))))))
|
||||
|
||||
|
||||
(deftest find-with-conditional-operators-on-embedded-documents
|
||||
|
|
|
|||
Loading…
Reference in a new issue