mirror of
https://github.com/status-im/op-geth.git
synced 2025-01-14 00:34:42 +00:00
Merge pull request #2597 from fabioberger/develop
core: Simplify bloom9 tests
This commit is contained in:
commit
b4dd3209b2
@ -39,12 +39,12 @@ func TestBloom(t *testing.T) {
|
||||
}
|
||||
|
||||
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")
|
||||
}
|
||||
}
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user