feat: new put implementation
This commit is contained in:
@@ -23,7 +23,7 @@ func TestLoad(t *testing.T) {
|
||||
table := NewTable[int, bool](Capacity(8))
|
||||
|
||||
for i := range 16 {
|
||||
err := table.Put(i, true)
|
||||
_, err := table.Put(i, true)
|
||||
assert.NoError(err)
|
||||
assert.Equal(float64(table.Size())/float64(table.TotalCapacity()), table.load())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user