forked from mirror/go-ethereum
parent
81ec564ef6
commit
cc67a84e94
@ -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") |
||||
} |
||||
} |
Loading…
Reference in new issue