Skip to content

Commit

Permalink
fixes hash-test
Browse files Browse the repository at this point in the history
  • Loading branch information
murex971 authored and vrongmeal committed Jul 13, 2020
1 parent a956e4d commit 7b68936
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stdkiwi/hash_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func TestHash(t *testing.T) {
t.Errorf("length expected: %d; got %d", length, len(values))
}

if values[0] != "x" || values[1] != "y" {
if !((values[0] == "x" && values[1] == "y") || (values[0] == "y" && values[1] == "x")) {
t.Errorf("Get did not return correct value(s)")
}

Expand All @@ -72,7 +72,7 @@ func TestHash(t *testing.T) {
t.Errorf("length expected: %d; got %d", length, len(keys))
}

if keys[0] != "a" || keys[1] != "b" {
if !((keys[0] == "a" && keys[1] == "b") || (keys[0] == "b" && keys[1] == "a")) {
t.Errorf("Key did not return correct key(s)")
}

Expand Down

0 comments on commit 7b68936

Please sign in to comment.