Skip to content

Commit

Permalink
Making wordlist test less strict.
Browse files Browse the repository at this point in the history
Distributions ship with different wordlists, making this test break
after updates and/or different machines.
  • Loading branch information
panmari committed Dec 13, 2021
1 parent f4530c3 commit b9d73bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cuckoofilter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func TestInsertion(t *testing.T) {
if got, want := cf.Count(), lineCount; got != want {
t.Errorf("After inserting: Count() = %d, want %d", got, want)
}
if got, want := cf.LoadFactor(), float64(0.097657); !cmp.Equal(got, want, optFloatNear) {
t.Errorf("After inserting: LoadFactor() = %f, want %f.", got, want)
if got, want := cf.LoadFactor(), float64(0.95); got >= want {
t.Errorf("After inserting: LoadFactor() = %f, want less than %f.", got, want)
}

for _, v := range values {
Expand Down

0 comments on commit b9d73bc

Please sign in to comment.