Lines Matching refs:SuggestSelection
45 TEST(TextClassificationModelTest, SuggestSelection) { in TEST() argument
52 EXPECT_EQ(model->SuggestSelection( in TEST()
58 EXPECT_EQ(model->SuggestSelection("350 Third Street, Cambridge", {0, 27}), in TEST()
62 EXPECT_EQ(std::make_pair(0, 1), model->SuggestSelection("a", {0, 1})); in TEST()
65 EXPECT_EQ(std::make_pair(0, 4), model->SuggestSelection("asdf", {0, 4})); in TEST()
76 model->SuggestSelection("350 Third Street, Cambridge", {0, 3})); in TEST()
78 model->SuggestSelection("350 Third Street, Cambridge", {4, 9})); in TEST()
80 model->SuggestSelection("350 Third Street, Cambridge", {10, 16})); in TEST()
82 model->SuggestSelection("a\nb\nc\n350 Third Street, Cambridge", in TEST()
94 selection = model->SuggestSelection("abc\nBarack Obama", {4, 10}); in TEST()
98 selection = model->SuggestSelection("Barack Obama\nabc", {0, 6}); in TEST()
113 selection = model->SuggestSelection( in TEST()
119 selection = model->SuggestSelection( in TEST()
125 selection = model->SuggestSelection( in TEST()
131 selection = model->SuggestSelection( in TEST()
184 selection = ff_model->SuggestSelection("", {0, 27}); in TEST()
189 selection = ff_model->SuggestSelection("", {-10, 27}); in TEST()
194 selection = ff_model->SuggestSelection("Word 1 2 3 hello!", {0, 27}); in TEST()
199 selection = ff_model->SuggestSelection("Word 1 2 3 hello!", {-30, 300}); in TEST()
204 selection = ff_model->SuggestSelection("Word 1 2 3 hello!", {-10, -1}); in TEST()
209 selection = ff_model->SuggestSelection("Word 1 2 3 hello!", {100, 17}); in TEST()