| Left: | ||
| Right: |
| OLD | NEW |
|---|---|
| (Empty) | |
| 1 | |
| 2 #include "gtest/gtest.h" | |
|
sergei
2018/01/26 22:13:36
Could you please remove the empty lines and add th
hub
2018/01/27 03:33:38
Done.
| |
| 3 | |
| 4 #include "compiled/String.h" | |
| 5 | |
| 6 TEST(TestRegexp, RegExp) | |
|
sergei
2018/01/26 22:13:36
I would prefer to have it in a separate file.
hub
2018/01/27 03:33:37
Done.
| |
| 7 { | |
| 8 auto id = GenerateRegExp(u"[0-9]*"_str, false); | |
| 9 EXPECT_EQ(id, 0); | |
| 10 EXPECT_FALSE(TestRegExp(id, u"abcd"_str)); | |
| 11 EXPECT_TRUE(TestRegExp(id, u"1234"_str)); | |
| 12 } | |
| 13 | |
| 14 int main(int argc, char **argv) | |
| 15 { | |
| 16 ::testing::InitGoogleTest(&argc, argv); | |
| 17 return RUN_ALL_TESTS(); | |
| 18 } | |
| OLD | NEW |