Home | History | Annotate | Download | only in tests

Lines Matching full:strs

170   std::vector<std::string> strs;
171 ASSERT(trie.predict("a", &ids, &strs) == 3);
176 ASSERT(strs[0] == "app");
177 ASSERT(strs[1] == "apple");
178 ASSERT(strs[2] == "and");
355 std::vector<std::string> strs;
356 ASSERT(trie.predict("ca", &ids, &strs, 1) == 1);
359 ASSERT(strs.size() == 1);
360 ASSERT(strs[0] == "car");
362 ASSERT(trie.predict_callback("", PredictCallback(&ids, &strs)) == 4);
368 ASSERT(strs.size() == 5);
369 ASSERT(strs[1] == "car");
370 ASSERT(strs[2] == "caster");
371 ASSERT(strs[3] == "after");
372 ASSERT(strs[4] == "bar");
389 std::string strs[10];
390 ASSERT(trie.predict("ca", ids, strs, 1) == 1);
392 ASSERT(strs[0] == "car");
394 ASSERT(trie.predict("", ids, strs, 10) == 4);
399 ASSERT(strs[0] == "car");
400 ASSERT(strs[1] == "caster");
401 ASSERT(strs[2] == "after");
402 ASSERT(strs[3] == "bar");
577 std::vector<std::string> strs;
578 ASSERT(trie.predict("", &ids, &strs) == 1);
581 ASSERT(strs[0] == "");
646 std::vector<std::string> strs;
647 ASSERT(trie.predict_depth_first("NP", &ids, &strs) == 1);
650 ASSERT(strs[0] == keys[0]);