20 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			324 B
		
	
	
	
		
			Go
		
	
	
	
	
	
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")
 | 
						|
	}
 | 
						|
}
 |