remove size since each put/get will have to update the root node

This commit is contained in:
Chris Lu
2021-08-20 01:19:11 -07:00
parent ec72547c8d
commit 2d237da74a
4 changed files with 0 additions and 32 deletions

View File

@@ -110,9 +110,6 @@ func TestAddHasCountFindIterateRemove(t *testing.T) {
if err != nil {
t.Error(err)
}
if bpt.Size() != (i + 1) {
t.Error("size was wrong", bpt.Size(), i+1)
}
}
for i, r := range recs {
@@ -236,9 +233,6 @@ func TestBpMap(t *testing.T) {
if err != nil {
t.Error(err)
}
if table.Size() != (i + 1) {
t.Error("size was wrong", table.Size(), i+1)
}
}
for _, r := range recs {
@@ -274,9 +268,6 @@ func TestBpMap(t *testing.T) {
t.Error("wrong value")
}
}
if table.Size() != (len(recs) - (i + 1)) {
t.Error("size was wrong", table.Size(), (len(recs) - (i + 1)))
}
}
}