• Home
  • Raw
  • Download

Lines Matching refs:strs

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