quorum/chain/bloom9_test.go

18 lines
318 B
Go
Raw Normal View History

2014-10-31 02:59:17 -07:00
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")
}
}