aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/bloom9_test.go
blob: 40f30f35d87c6dc273bdc2335501d54ca0b15baf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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, [][]byte{[]byte("hellohello")}, nil}}).Bytes()
    res := BloomLookup(bin, testCase)

    if !res {
        t.Errorf("Bloom lookup failed")
    }
}