diff options
Diffstat (limited to 'src/mongo/db/matcher/expression_parser_test.cpp')
-rw-r--r-- | src/mongo/db/matcher/expression_parser_test.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/src/mongo/db/matcher/expression_parser_test.cpp b/src/mongo/db/matcher/expression_parser_test.cpp index 17e77fa2522..e60bd62ccc0 100644 --- a/src/mongo/db/matcher/expression_parser_test.cpp +++ b/src/mongo/db/matcher/expression_parser_test.cpp @@ -258,8 +258,7 @@ TEST(MatchExpressionParserTest, RegexParsesSuccessfullyWithOptionsNotInline) { TEST(MatchExpressionParserTest, RegexDoesNotParseSuccessfullyWithMultipleOptions) { auto query = BSON("a" << BSON("$options" << "s" - << "$regex" - << BSONRegEx("/myRegex/", "i"))); + << "$regex" << BSONRegEx("/myRegex/", "i"))); boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); ASSERT_NOT_OK(MatchExpressionParser::parse(query, expCtx).getStatus()); } @@ -267,8 +266,7 @@ TEST(MatchExpressionParserTest, RegexDoesNotParseSuccessfullyWithMultipleOptions TEST(MatchExpressionParserTest, RegexParsesSuccessfullyWithOptionsFirst) { auto query = BSON("a" << BSON("$options" << "s" - << "$regex" - << BSONRegEx("/myRegex/", ""))); + << "$regex" << BSONRegEx("/myRegex/", ""))); boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); ASSERT_OK(MatchExpressionParser::parse(query, expCtx).getStatus()); } @@ -276,8 +274,7 @@ TEST(MatchExpressionParserTest, RegexParsesSuccessfullyWithOptionsFirst) { TEST(MatchExpressionParserTest, RegexParsesSuccessfullyWithOptionsFirstEmptyOptions) { auto query = BSON("a" << BSON("$options" << "" - << "$regex" - << BSONRegEx("/myRegex/", ""))); + << "$regex" << BSONRegEx("/myRegex/", ""))); boost::intrusive_ptr<ExpressionContextForTest> expCtx(new ExpressionContextForTest()); ASSERT_OK(MatchExpressionParser::parse(query, expCtx).getStatus()); } |