fix: resize of Table.Drop() now decreases size
- Generalized Table.resize() to accept a capacity size for each bucket.
This commit is contained in:
@@ -25,6 +25,6 @@ func TestLoad(t *testing.T) {
|
||||
for i := range 16 {
|
||||
err := table.Put(i, true)
|
||||
assert.NoError(err)
|
||||
assert.Equal(float64(table.Size())/float64(table.Capacity()), table.load())
|
||||
assert.Equal(float64(table.Size())/float64(table.TotalCapacity()), table.load())
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user