Navigation Menu

Skip to content
This repository has been archived by the owner on Jan 21, 2022. It is now read-only.

Commit

Permalink
Added test for $nor demonstrating additivity between a DSLed DBObject
Browse files Browse the repository at this point in the history
and a tuple
  • Loading branch information
Brendan W. McAdams committed Dec 8, 2010
1 parent bd5037e commit 1b75363
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions casbah-query/src/test/scala/BarewordOperatorsSpec.scala
Expand Up @@ -276,12 +276,12 @@ class BarewordOperatorsSpec extends Specification with PendingUntilFixed with Lo
nor must haveSuperClass[DBObject]
nor must beEqualTo(MongoDBObject("$nor" -> MongoDBList(MongoDBObject("foo" -> MongoDBObject("$gte" -> 15, "$lt" -> 35.2, "$ne" -> 16)))))
}
/*"Work with multiples" in {
val nor = $nor ( "foo" $gte 15 $lt 35 ++ "x" -> "y" )
"Work with multiples" in {
val nor = $nor { "foo" $gte 15 $lt 35 + ("x" -> "y") }
nor must notBeNull
nor must haveSuperClass[DBObject]
nor must beEqualTo(MongoDBObject("$nor" -> MongoDBList(MongoDBObject("foo" -> MongoDBObject("$gte" -> 15, "$lt" -> 35)), MongoDBObject("x" -> "y"))))
}*/
nor must beEqualTo(MongoDBObject("$nor" -> MongoDBList(MongoDBObject("foo" -> MongoDBObject("$gte" -> 15, "$lt" -> 35), ("x" -> "y")))))
}
}
}

Expand Down

0 comments on commit 1b75363

Please sign in to comment.