mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
18 lines
318 B
Go
18 lines
318 B
Go
package chain
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/ethereum/go-ethereum/vm"
|
|
)
|
|
|
|
func TestBloom9(t *testing.T) {
|
|
testCase := []byte("testtest")
|
|
bin := LogsBloom([]vm.Log{vm.Log{testCase, [][]byte{[]byte("hellohello")}, nil}}).Bytes()
|
|
res := BloomLookup(bin, testCase)
|
|
|
|
if !res {
|
|
t.Errorf("Bloom lookup failed")
|
|
}
|
|
}
|