diff options
author | Aaron <aaron@10gen.com> | 2009-04-13 11:40:31 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-13 11:40:31 -0400 |
commit | de3b76ff4508ccc13f8548f05e02042e94a1e3dc (patch) | |
tree | 019dae06fddd4cc3c9164c184044004cfa076d51 /dbtests | |
parent | 53a54c825e2193085848361ba72d555a92b34f54 (diff) | |
download | mongo-de3b76ff4508ccc13f8548f05e02042e94a1e3dc.tar.gz |
check multi ne behavior MINOR
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 >(); } }; |