Added bloom 9 point lookup and bloom test

This commit is contained in:
obscuren
2014-10-29 20:16:18 +01:00
parent 81ec564ef6
commit cc67a84e94
2 changed files with 29 additions and 1 deletions

17
ethchain/bloom9_test.go Normal file
View File

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