Home | History | Annotate | Download | only in tests

Lines Matching defs:lengths

141   std::vector<std::size_t> lengths;
142 ASSERT(trie.find("Baddie", &ids, &lengths) == 1);
145 ASSERT(lengths.size() == 1);
146 ASSERT(lengths[0] == 3);
148 ASSERT(trie.find_callback("anderson", FindCallback(&ids, &lengths)) == 1);
151 ASSERT(lengths.size() == 2);
152 ASSERT(lengths[1] == 3);
339 std::vector<std::size_t> lengths;
340 ASSERT(trie.find("card", &ids, &lengths) == 1);
343 ASSERT(lengths.size() == 1);
344 ASSERT(lengths[0] == 3);
377 std::size_t lengths[10];
378 ASSERT(trie.find("card", ids, lengths, 10) == 1);
380 ASSERT(lengths[0] == 3);
557 std::vector<std::size_t> lengths;
558 ASSERT(trie.find("xyz", &ids, &lengths) == 1);
562 ASSERT(lengths.size() == 1);
563 ASSERT(lengths[0] == 0);
565 ASSERT(trie.find_callback("xyz", FindCallback(&ids, &lengths)) == 1);
568 ASSERT(lengths.size() == 2);
569 ASSERT(lengths[1] == 0);