diff options
Diffstat (limited to 'src/mongo/util/options_parser/environment_test.cpp')
-rw-r--r-- | src/mongo/util/options_parser/environment_test.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/util/options_parser/environment_test.cpp b/src/mongo/util/options_parser/environment_test.cpp index 9f0737e2ad6..6fbd3d70048 100644 --- a/src/mongo/util/options_parser/environment_test.cpp +++ b/src/mongo/util/options_parser/environment_test.cpp @@ -92,8 +92,7 @@ TEST(ToBSONTests, DottedValues) { ASSERT_OK(environment.set(moe::Key("val1.dotted2"), moe::Value(std::string("string")))); mongo::BSONObj obj = BSON("val1" << BSON("dotted1" << 6 << "dotted2" << "string") - << "val2" - << true); + << "val2" << true); // TODO: Put a comparison here that doesn't depend on the field order. Right now it is // based on the sort order of keys in a std::map. ASSERT_BSONOBJ_EQ(obj, environment.toBSON()); @@ -108,12 +107,10 @@ TEST(ToBSONTests, DeepDottedValues) { ASSERT_OK(environment.set(moe::Key("val2"), moe::Value(6.0))); mongo::BSONObj obj = BSON("val1" << BSON("first1" << BSON("second1" << BSON("third1" << 6 << "third2" << true) - << "second2" - << BSON("third1" << false)) + << "second2" << BSON("third1" << false)) << "first2" << "string") - << "val2" - << 6.0); + << "val2" << 6.0); // TODO: Put a comparison here that doesn't depend on the field order. Right now it is // based on the sort order of keys in a std::map. ASSERT_BSONOBJ_EQ(obj, environment.toBSON()); |