diff options
Diffstat (limited to 'src/mongo/dbtests/jsobjtests.cpp')
-rw-r--r-- | src/mongo/dbtests/jsobjtests.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mongo/dbtests/jsobjtests.cpp b/src/mongo/dbtests/jsobjtests.cpp index 9f870c06168..a02f611fe1b 100644 --- a/src/mongo/dbtests/jsobjtests.cpp +++ b/src/mongo/dbtests/jsobjtests.cpp @@ -39,6 +39,7 @@ #include "mongo/bson/bsonobj_comparator.h" #include "mongo/bson/simple_bsonelement_comparator.h" #include "mongo/bson/util/builder.h" +#include "mongo/db/bson/bson_helper.h" #include "mongo/db/bson/dotted_path_support.h" #include "mongo/db/jsobj.h" #include "mongo/db/json.h" @@ -1544,10 +1545,10 @@ class LabelishOr : public LabelBase { << "p"))); } BSONObj actual() { - return OR(BSON("a" << GT << 1 << LTE << "x"), - BSON("b" << NE << 1 << NE << "f" << NE << 22.3), - BSON("x" - << "p")); + return BSON(OR(BSON("a" << GT << 1 << LTE << "x"), + BSON("b" << NE << 1 << NE << "f" << NE << 22.3), + BSON("x" + << "p"))); } }; |