github.com/fibonacci-chain/fbc@v0.0.0-20231124064014-c7636198c1e9/x/evm/types/key_test.go (about)

     1  package types
     2  
     3  import (
     4  	"bytes"
     5  	"github.com/stretchr/testify/require"
     6  	"testing"
     7  )
     8  
     9  func TestBloomKey(t *testing.T) {
    10  	expectedHeight, expectedBloomKey := int64(1), []byte{0, 0, 0, 0, 0, 0, 0, 1}
    11  	require.True(t, bytes.Equal(BloomKey(expectedHeight), expectedBloomKey))
    12  }