summaryrefslogtreecommitdiff
path: root/dbtests
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-04-13 11:40:31 -0400
committerAaron <aaron@10gen.com>2009-04-13 11:40:31 -0400
commitde3b76ff4508ccc13f8548f05e02042e94a1e3dc (patch)
tree019dae06fddd4cc3c9164c184044004cfa076d51 /dbtests
parent53a54c825e2193085848361ba72d555a92b34f54 (diff)
downloadmongo-de3b76ff4508ccc13f8548f05e02042e94a1e3dc.tar.gz
check multi ne behavior MINOR
Diffstat (limited to 'dbtests')
-rw-r--r--dbtests/querytests.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/dbtests/querytests.cpp b/dbtests/querytests.cpp
index 1a2d3f75c29..be3925014df 100644
--- a/dbtests/querytests.cpp
+++ b/dbtests/querytests.cpp
@@ -363,6 +363,19 @@ namespace QueryTests {
ASSERT( !client().findOne( ns, "", &empty ).isEmpty() );
}
};
+
+ class MultiNe : public ClientBase {
+ public:
+ ~MultiNe() {
+ client().dropCollection( "querytests.Ne" );
+ }
+ void run() {
+ const char *ns = "querytests.Ne";
+ client().insert( ns, fromjson( "{a:[1,2]}" ) );
+ BSONObj spec = fromjson( "{a:{$ne:1,$ne:2}}" );
+ ASSERT( !client().findOne( ns, spec ).isEmpty() );
+ }
+ };
class All : public UnitTest::Suite {
public:
@@ -383,6 +396,7 @@ namespace QueryTests {
add< ArrayId >();
add< UnderscoreNs >();
add< EmptyFieldSpec >();
+ add< MultiNe >();
}
};