diff options
Diffstat (limited to 'dbtests')
-rw-r--r-- | dbtests/querytests.cpp | 14 |
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 >(); } }; |