Closed GoogleCodeExporter closed 9 years ago
Addendum: I hereby place the code as written in the issue description above in
the
public domain for free use by anyone without any restriction whatsoever.
Original comment by ameaijou@gmail.com
on 4 Jan 2010 at 3:23
Please don't use anything from the testing::internal namespace directly, as
they are
implementation details and thus subject to change without notice. If you use
them,
your code could break with new releases of gtest.
We do provide regular expression matching. Currently you need to download
Google
Mock (http://code.google.com/p/googlemock/) in order to use it. The syntax is:
EXPECT_THAT(my_string, ContainsRegex("a.*b"));
See http://code.google.com/p/googlemock/wiki/CheatSheet#String_Matchers for
other
checks you can do on strings, once you start to use gmock.
We plan to move this functionality from gmock to gtest
(http://code.google.com/p/googletest/issues/detail?id=191). Please star issue
191 to
receive updates on it.
Original comment by w...@google.com
on 4 Jan 2010 at 5:12
Original issue reported on code.google.com by
ameaijou@gmail.com
on 4 Jan 2010 at 3:14