Commit b4dd3209 authored by Jeffrey Wilcke's avatar Jeffrey Wilcke

Merge pull request #2597 from fabioberger/develop

core: Simplify bloom9 tests
parents 262d9283 faf66313
...@@ -39,12 +39,12 @@ func TestBloom(t *testing.T) { ...@@ -39,12 +39,12 @@ func TestBloom(t *testing.T) {
} }
for _, data := range positive { for _, data := range positive {
if !bloom.Test(new(big.Int).SetBytes([]byte(data))) { if !bloom.TestBytes([]byte(data)) {
t.Error("expected", data, "to test true") t.Error("expected", data, "to test true")
} }
} }
for _, data := range negative { for _, data := range negative {
if bloom.Test(new(big.Int).SetBytes([]byte(data))) { if bloom.TestBytes([]byte(data)) {
t.Error("did not expect", data, "to test true") t.Error("did not expect", data, "to test true")
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment