forked from mirror/go-ethereum
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
318 B
18 lines
318 B
10 years ago
|
package chain
|
||
10 years ago
|
|
||
|
import (
|
||
|
"testing"
|
||
|
|
||
|
"github.com/ethereum/go-ethereum/vm"
|
||
|
)
|
||
|
|
||
|
func TestBloom9(t *testing.T) {
|
||
|
testCase := []byte("testtest")
|
||
10 years ago
|
bin := LogsBloom([]vm.Log{vm.Log{testCase, [][]byte{[]byte("hellohello")}, nil}}).Bytes()
|
||
10 years ago
|
res := BloomLookup(bin, testCase)
|
||
|
|
||
|
if !res {
|
||
|
t.Errorf("Bloom lookup failed")
|
||
|
}
|
||
|
}
|