Merge pull request #4334 from ngie-eign:fix-RETest-non-ABSL

PiperOrigin-RevId: 557122083
Change-Id: I77fb7fe99baf9cbf341ad37d4b651a0ac606b549
This commit is contained in:
Copybara-Service 2023-08-15 07:08:30 -07:00
commit fc234d6d18

View File

@ -418,8 +418,8 @@ TYPED_TEST(RETest, ImplicitConstructorWorks) {
const RE simple(TypeParam("hello"));
EXPECT_STREQ("hello", simple.pattern());
const RE normal(TypeParam(".*(\\w+)"));
EXPECT_STREQ(".*(\\w+)", normal.pattern());
const RE normal(TypeParam(".*([[:alnum:]_]+)"));
EXPECT_STREQ(".*([[:alnum:]_]+)", normal.pattern());
}
// Tests that RE's constructors reject invalid regular expressions.