| 47 | }; |
| 48 | |
| 49 | TEST_F(PhraseExtractTest, ExtractSuffixes) { |
| 50 | phraseExtract.Reset(); |
| 51 | phraseExtract.SetWordMinLength(1); |
| 52 | phraseExtract.SetWordMaxLength(3); |
| 53 | phraseExtract.SetFullText(siShi); |
| 54 | phraseExtract.ExtractSuffixes(); |
| 55 | EXPECT_EQ( |
| 56 | std::vector<UTF8StringSlice8Bit>( |
| 57 | {"十", "十十四是", "十四四十", "十四是十", "十是十十", "十是四十", |
| 58 | "四十", "四十是十", "四十是四", "四四十是", "四是十四", "四是四十", |
| 59 | "是十十四", "是十四四", "是四十", "是四十是"}), |
| 60 | Suffixes()); |
| 61 | } |
| 62 | |
| 63 | TEST_F(PhraseExtractTest, ExtractPrefixes) { |
| 64 | phraseExtract.Reset(); |
nothing calls this directly
no test coverage detected