bsc/chain/bloom9_test.go
Felix Lange 394e0f60c2 chain, tests/helper, vm: make tests compile
They were broken by df5603de0a34e80a1, when vm.Log became ethstate.Log.
2014-10-31 18:56:25 +01:00

20 lines
324 B
Go

package chain
import (
"testing"
"github.com/ethereum/go-ethereum/state"
)
func TestBloom9(t *testing.T) {
testCase := []byte("testtest")
bin := LogsBloom([]state.Log{
{testCase, [][]byte{[]byte("hellohello")}, nil},
}).Bytes()
res := BloomLookup(bin, testCase)
if !res {
t.Errorf("Bloom lookup failed")
}
}