feat: new put implementation

This commit is contained in:
2026-04-04 00:13:50 +02:00
parent 322d71f0be
commit 05b633afca
7 changed files with 111 additions and 67 deletions

View File

@@ -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())
}