Skip to content

Commit

Permalink
small fix
Browse files Browse the repository at this point in the history
  • Loading branch information
UNEXENU committed Nov 20, 2024
1 parent 2f7015f commit 014e7b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/BlankNodeManagerTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,21 @@ TEST(BlankNodeManager, LocalBlankNodeManagerGetID) {
BlankNodeManager::LocalBlankNodeManager l(&bnm);

// initially the LocalBlankNodeManager doesn't have any blocks
EXPECT_EQ(l.blocks_.size(), 0);
EXPECT_EQ(l.blocks_->size(), 0);

// A new Block is allocated, if
// no blocks are allocated yet
uint64_t id = l.getId();
EXPECT_EQ(l.blocks_.size(), 1);
EXPECT_EQ(l.blocks_->size(), 1);
EXPECT_TRUE(l.containsBlankNodeIndex(id));
EXPECT_FALSE(l.containsBlankNodeIndex(id + 1));
EXPECT_FALSE(l.containsBlankNodeIndex(id - 1));

// or the ids of the last block are all used
l.blocks_.back().nextIdx_ = id + BlankNodeManager::blockSize_;
l.blocks_->back().nextIdx_ = id + BlankNodeManager::blockSize_;
id = l.getId();
EXPECT_TRUE(l.containsBlankNodeIndex(id));
EXPECT_EQ(l.blocks_.size(), 2);
EXPECT_EQ(l.blocks_->size(), 2);
}

// _____________________________________________________________________________
Expand Down

0 comments on commit 014e7b3

Please sign in to comment.