summaryrefslogtreecommitdiff
path: root/src/mongo/db/field_parser_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/field_parser_test.cpp')
-rw-r--r--src/mongo/db/field_parser_test.cpp24
1 files changed, 17 insertions, 7 deletions
diff --git a/src/mongo/db/field_parser_test.cpp b/src/mongo/db/field_parser_test.cpp
index 2e9027362c8..428699484b9 100644
--- a/src/mongo/db/field_parser_test.cpp
+++ b/src/mongo/db/field_parser_test.cpp
@@ -26,9 +26,9 @@
* it in the license file.
*/
+#include <map>
#include <string>
#include <vector>
-#include <map>
#include "mongo/db/field_parser.h"
#include "mongo/db/jsobj.h"
@@ -78,7 +78,9 @@ protected:
valLong = 1LL;
doc = BSON(aBool(valBool) << anArray(valArray) << anObj(valObj) << aDate(valDate)
- << aString(valString) << anOID(valOID) << aLong(valLong));
+ << aString(valString)
+ << anOID(valOID)
+ << aLong(valLong));
}
void tearDown() {}
@@ -315,9 +317,13 @@ TEST(ComplexExtraction, GetObjectMap) {
BSONObjBuilder bob;
bob << mapField() << BSON("a" << BSON("a"
- << "a") << "b" << BSON("b"
- << "b") << "c" << BSON("c"
- << "c"));
+ << "a")
+ << "b"
+ << BSON("b"
+ << "b")
+ << "c"
+ << BSON("c"
+ << "c"));
BSONObj obj = bob.obj();
map<string, BSONObj> parsedMap;
@@ -342,7 +348,9 @@ TEST(ComplexExtraction, GetBadMap) {
BSONObjBuilder bob;
bob << mapField() << BSON("a"
<< "a"
- << "b" << 123 << "c"
+ << "b"
+ << 123
+ << "c"
<< "c");
BSONObj obj = bob.obj();
@@ -421,7 +429,9 @@ TEST(ComplexExtraction, GetBadNestedMap) {
BSONObj nestedMapObj = BSON("a"
<< "a"
- << "b" << 123 << "c"
+ << "b"
+ << 123
+ << "c"
<< "c");
BSONObjBuilder bob;