From 45af23d9a67a49fcb4679f3f49087b2d9978816c Mon Sep 17 00:00:00 2001 From: Egor Pugin Date: Fri, 22 Nov 2024 04:39:42 +0300 Subject: [PATCH] Update test. --- unittest/list_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unittest/list_test.cc b/unittest/list_test.cc index 212994e4..cfdae00e 100644 --- a/unittest/list_test.cc +++ b/unittest/list_test.cc @@ -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);