diff options
Diffstat (limited to 'chain/bloom9_test.go')
-rw-r--r-- | chain/bloom9_test.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/chain/bloom9_test.go b/chain/bloom9_test.go new file mode 100644 index 000000000..b5a269504 --- /dev/null +++ b/chain/bloom9_test.go @@ -0,0 +1,17 @@ +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") + } +} |