diff options
author | Copybara-Service <copybara-worker@google.com> | 2023-08-15 14:08:30 (GMT) |
---|---|---|
committer | Copybara-Service <copybara-worker@google.com> | 2023-08-15 14:08:30 (GMT) |
commit | fc234d6d18b39dde39362e1d371886d4f9abf5a0 (patch) | |
tree | 601ab4cbc034338e11df12b0c89b4cd07c2d707c /googletest/test/googletest-port-test.cc | |
parent | d76e9e0dd93a9921e4054c71f23e7c8fa8da864d (diff) | |
parent | 77485ff0046136f89f14d5e7a51e98849dc00691 (diff) | |
download | googletest-fc234d6d18b39dde39362e1d371886d4f9abf5a0.zip googletest-fc234d6d18b39dde39362e1d371886d4f9abf5a0.tar.gz googletest-fc234d6d18b39dde39362e1d371886d4f9abf5a0.tar.bz2 |
Merge pull request #4334 from ngie-eign:fix-RETest-non-ABSL
PiperOrigin-RevId: 557122083
Change-Id: I77fb7fe99baf9cbf341ad37d4b651a0ac606b549
Diffstat (limited to 'googletest/test/googletest-port-test.cc')
-rw-r--r-- | googletest/test/googletest-port-test.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/googletest/test/googletest-port-test.cc b/googletest/test/googletest-port-test.cc index 32a2a7b..e0793ba 100644 --- a/googletest/test/googletest-port-test.cc +++ b/googletest/test/googletest-port-test.cc @@ -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. |