Lines Matching refs:entries
234 marisa::grimoire::Vector<marisa::grimoire::trie::Entry> entries; in TestTextTail() local
236 tail.build(entries, &offsets, MARISA_TEXT_TAIL); in TestTextTail()
248 entries.push_back(entry); in TestTextTail()
250 tail.build(entries, &offsets, MARISA_TEXT_TAIL); in TestTextTail()
258 ASSERT(offsets.size() == entries.size()); in TestTextTail()
263 entries.clear(); in TestTextTail()
265 entries.push_back(entry); in TestTextTail()
267 entries.push_back(entry); in TestTextTail()
269 entries.push_back(entry); in TestTextTail()
271 entries.push_back(entry); in TestTextTail()
273 entries.push_back(entry); in TestTextTail()
275 entries.push_back(entry); in TestTextTail()
277 tail.build(entries, &offsets, MARISA_TEXT_TAIL); in TestTextTail()
278 std::sort(entries.begin(), entries.end(), in TestTextTail()
282 ASSERT(offsets.size() == entries.size()); in TestTextTail()
283 for (std::size_t i = 0; i < entries.size(); ++i) { in TestTextTail()
285 ASSERT(std::strlen(ptr) == entries[i].length()); in TestTextTail()
286 ASSERT(std::strcmp(ptr, entries[i].ptr()) == 0); in TestTextTail()
307 for (std::size_t i = 0; i < entries.size(); ++i) { in TestTextTail()
309 ASSERT(std::strlen(ptr) == entries[i].length()); in TestTextTail()
310 ASSERT(std::strcmp(ptr, entries[i].ptr()) == 0); in TestTextTail()
322 ASSERT(offsets.size() == entries.size()); in TestTextTail()
323 for (std::size_t i = 0; i < entries.size(); ++i) { in TestTextTail()
325 ASSERT(std::strlen(ptr) == entries[i].length()); in TestTextTail()
326 ASSERT(std::strcmp(ptr, entries[i].ptr()) == 0); in TestTextTail()
341 ASSERT(offsets.size() == entries.size()); in TestTextTail()
342 for (std::size_t i = 0; i < entries.size(); ++i) { in TestTextTail()
344 ASSERT(std::strlen(ptr) == entries[i].length()); in TestTextTail()
345 ASSERT(std::strcmp(ptr, entries[i].ptr()) == 0); in TestTextTail()
355 marisa::grimoire::Vector<marisa::grimoire::trie::Entry> entries; in TestBinaryTail() local
357 tail.build(entries, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
369 entries.push_back(entry); in TestBinaryTail()
371 tail.build(entries, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
379 ASSERT(offsets.size() == entries.size()); in TestBinaryTail()
383 entries[0].set_str(binary_entry, sizeof(binary_entry)); in TestBinaryTail()
385 tail.build(entries, &offsets, MARISA_TEXT_TAIL); in TestBinaryTail()
388 ASSERT(tail.size() == entries[0].length()); in TestBinaryTail()
390 ASSERT(offsets.size() == entries.size()); in TestBinaryTail()
393 entries.clear(); in TestBinaryTail()
395 entries.push_back(entry); in TestBinaryTail()
397 entries.push_back(entry); in TestBinaryTail()
399 entries.push_back(entry); in TestBinaryTail()
401 entries.push_back(entry); in TestBinaryTail()
403 entries.push_back(entry); in TestBinaryTail()
405 entries.push_back(entry); in TestBinaryTail()
407 tail.build(entries, &offsets, MARISA_BINARY_TAIL); in TestBinaryTail()
408 std::sort(entries.begin(), entries.end(), in TestBinaryTail()
413 ASSERT(offsets.size() == entries.size()); in TestBinaryTail()
414 for (std::size_t i = 0; i < entries.size(); ++i) { in TestBinaryTail()
416 ASSERT(std::memcmp(ptr, entries[i].ptr(), entries[i].length()) == 0); in TestBinaryTail()