2 Commits

Author SHA1 Message Date
2fc74169d5 Merge remote-tracking branch 'origin' into fix/infinite-put-glitch
All checks were successful
CI / Go Lint (pull_request) Successful in 38s
CI / Markdown Lint (pull_request) Successful in 12s
CI / Makefile Lint (pull_request) Successful in 29s
CI / Unit Tests (pull_request) Successful in 26s
CI / Fuzz Tests (pull_request) Successful in 59s
CI / Mutation Tests (pull_request) Successful in 1m0s
2026-03-24 21:24:48 -04:00
41b09ae680 fix: remove redundant test TestRemove (#8)
All checks were successful
CI / Makefile Lint (push) Successful in 24s
CI / Go Lint (push) Successful in 28s
CI / Markdown Lint (push) Successful in 20s
CI / Unit Tests (push) Successful in 23s
CI / Fuzz Tests (push) Successful in 54s
CI / Mutation Tests (push) Successful in 50s
This test offers the same functionality as `TestAddItem`.

Reviewed-on: #8
Co-authored-by: M.V. Hutz <git@maximhutz.me>
Co-committed-by: M.V. Hutz <git@maximhutz.me>
2026-03-21 16:24:52 +00:00

View File

@@ -118,18 +118,6 @@ func TestGetMany(t *testing.T) {
} }
} }
func TestRemove(t *testing.T) {
assert := assert.New(t)
table := cuckoo.NewTable[int, bool]()
assert.False(table.Has(0))
err := table.Put(0, true)
assert.NoError(err)
assert.True(table.Has(0))
}
func TestDropExistingItem(t *testing.T) { func TestDropExistingItem(t *testing.T) {
assert := assert.New(t) assert := assert.New(t)
key, value := 0, true key, value := 0, true