Definition at line 27 of file heap_test.cc.
◆ ~HeapTest()
tesseract::HeapTest::~HeapTest |
( |
| ) |
|
|
virtualdefault |
◆ PushTestData()
◆ SetUp()
void tesseract::HeapTest::SetUp |
( |
| ) |
|
|
inlineprotected |
Definition at line 29 of file heap_test.cc.
30 std::locale::global(std::locale(
""));
◆ VerifyHeapVectorMatch()
Definition at line 45 of file heap_test.cc.
46 EXPECT_FALSE(heap->empty());
47 EXPECT_EQ(heap->size(), v->size());
53 EXPECT_LT((*v)[0].key, v->back().key);
54 for (
int i = 0; i < v->size(); ++i) {
55 EXPECT_EQ((*v)[i].key, heap->PeekTop().key);
57 if (i + 1 < v->size() && (*v)[i + 1].key == (*v)[i].key) {
58 while (i + 1 < v->size() && (*v)[i + 1].key == (*v)[i].key) {
61 EXPECT_FALSE(heap->empty());
62 EXPECT_EQ((*v)[i].key, heap->PeekTop().key);
66 EXPECT_EQ((*v)[i].data, heap->PeekTop().data);
68 EXPECT_FALSE(heap->empty());
69 EXPECT_TRUE(heap->Pop(
nullptr));
71 EXPECT_TRUE(heap->empty());
The documentation for this class was generated from the following file: