Merge pull request #4334 from ngie-eign:fix-RETest-non-ABSL
PiperOrigin-RevId: 557122083 Change-Id: I77fb7fe99baf9cbf341ad37d4b651a0ac606b549
This commit is contained in:
commit
fc234d6d18
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user