aboutsummaryrefslogtreecommitdiffstats
path: root/chain/bloom9_test.go
blob: 863d0adee4947811cc2fdd4472b909e24ca32212 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package chain

import (
    "testing"

    "github.com/ethereum/go-ethereum/state"
)

func TestBloom9(t *testing.T) {
    testCase := []byte("testtest")
    bin := LogsBloom([]state.Log{
        {testCase, [][]byte{[]byte("hellohello")}, nil},
    }).Bytes()
    res := BloomLookup(bin, testCase)

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