diff options
Diffstat (limited to 'src/mongo/bson/util/bson_check_test.cpp')
-rw-r--r-- | src/mongo/bson/util/bson_check_test.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/src/mongo/bson/util/bson_check_test.cpp b/src/mongo/bson/util/bson_check_test.cpp index f220ee1e0ca..93716c84a6b 100644 --- a/src/mongo/bson/util/bson_check_test.cpp +++ b/src/mongo/bson/util/bson_check_test.cpp @@ -52,26 +52,19 @@ TEST(BsonCheck, CheckHasOnlyLegalFields) { ASSERT_OK(bsonCheckOnlyHasFields("", BSON("aField" << "value" - << "thirdField" - << 1 - << "anotherField" - << 2), + << "thirdField" << 1 << "anotherField" << 2), legals)); ASSERT_OK(bsonCheckOnlyHasFields("", BSON("aField" << "value" - << "thirdField" - << 1), + << "thirdField" << 1), legals)); ASSERT_EQUALS(ErrorCodes::BadValue, bsonCheckOnlyHasFields("", BSON("aField" << "value" - << "illegal" - << 4 - << "thirdField" - << 1), + << "illegal" << 4 << "thirdField" << 1), legals)); } |