mirror of
https://github.com/tesseract-ocr/tesseract.git
synced 2024-11-27 12:49:35 +08:00
Update test.
This commit is contained in:
parent
bb774797ce
commit
45af23d9a6
@ -25,7 +25,7 @@ protected:
|
||||
const size_t ListSize = 5;
|
||||
};
|
||||
|
||||
class Clst : public CLIST_LINK {
|
||||
class Clst {
|
||||
public:
|
||||
Clst(unsigned n) : value(n) {}
|
||||
unsigned value;
|
||||
@ -51,7 +51,7 @@ TEST_F(ListTest, TestCLIST) {
|
||||
Clst_CLIST list;
|
||||
EXPECT_TRUE(list.empty());
|
||||
EXPECT_EQ(list.length(), 0);
|
||||
auto it = CLIST_ITERATOR(&list);
|
||||
auto it = Clst_CLIST::ITERATOR(&list);
|
||||
for (unsigned i = 0; i < ListSize; i++) {
|
||||
auto *lst = new Clst(i);
|
||||
it.add_to_end(lst);
|
||||
|
Loading…
Reference in New Issue
Block a user