Skip to content

Commit

Permalink
Merge pull request #186 from geuscht-m/improve-distinct-tests
Browse files Browse the repository at this point in the history
Add missing test case for distinct tests
  • Loading branch information
michaelklishin authored Aug 9, 2020
2 parents c2cbdca + ce6dcd2 commit 1fdd62d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions test/monger/test/collection_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
{:state "CA" :quantity 2 :price 2.95 }
{:state "IL" :quantity 3 :price 5.50 }]]
(mc/insert-batch db collection batch)
(is (= ["CA" "IL" "NY"] (sort (mc/distinct db collection :state))))
(is (= ["CA" "IL" "NY"] (sort (mc/distinct db collection :state {}))))
(is (= ["CA" "NY"] (sort (mc/distinct db collection :state {:price {$gt 100.00}}))))))

Expand Down

0 comments on commit 1fdd62d

Please sign in to comment.