Home | History | Annotate | Download | only in tests

Lines Matching full:strs

168   std::vector<std::string> strs;
169 ASSERT(trie.predict("a", &ids, &strs) == 3);
174 ASSERT(strs[0] == "app");
175 ASSERT(strs[1] == "apple");
176 ASSERT(strs[2] == "and");
353 std::vector<std::string> strs;
354 ASSERT(trie.predict("ca", &ids, &strs, 1) == 1);
357 ASSERT(strs.size() == 1);
358 ASSERT(strs[0] == "car");
360 ASSERT(trie.predict_callback("", PredictCallback(&ids, &strs)) == 4);
366 ASSERT(strs.size() == 5);
367 ASSERT(strs[1] == "car");
368 ASSERT(strs[2] == "caster");
369 ASSERT(strs[3] == "after");
370 ASSERT(strs[4] == "bar");
387 std::string strs[10];
388 ASSERT(trie.predict("ca", ids, strs, 1) == 1);
390 ASSERT(strs[0] == "car");
392 ASSERT(trie.predict("", ids, strs, 10) == 4);
397 ASSERT(strs[0] == "car");
398 ASSERT(strs[1] == "caster");
399 ASSERT(strs[2] == "after");
400 ASSERT(strs[3] == "bar");
559 std::vector<std::string> strs;
560 ASSERT(trie.predict("", &ids, &strs) == 1);
563 ASSERT(strs[0] == "");
626 std::vector<std::string> strs;
627 ASSERT(trie.predict_depth_first("NP", &ids, &strs) == 1);
630 ASSERT(strs[0] == keys[0]);