mirror of
https://github.com/monero-project/monero.git
synced 2026-01-14 13:56:43 -08:00
tests: fix hashchain unit tests
and relax the not-empty safety check to stay more intuitiuve
This commit is contained in:
@@ -122,7 +122,7 @@ TEST(hashchain, trim)
|
||||
ASSERT_EQ(hashchain.size(), 3);
|
||||
ASSERT_EQ(hashchain[2], make_hash(3));
|
||||
hashchain.trim(3);
|
||||
ASSERT_EQ(hashchain.offset(), 3);
|
||||
ASSERT_EQ(hashchain.offset(), 2); // never gets it empty
|
||||
ASSERT_EQ(hashchain.size(), 3);
|
||||
ASSERT_FALSE(hashchain.empty());
|
||||
ASSERT_EQ(hashchain.genesis(), make_hash(1));
|
||||
|
||||
Reference in New Issue
Block a user