Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-axner committed Sep 25, 2024
1 parent 21a407e commit b0cce5c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions go/ops_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,12 +94,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) {
Value: []byte("a"),
Leaf: leafOp,
Path: []*InnerOp{
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: []byte{1},
Suffix: append(bLeaf, b2Leaf...),
},
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: []byte{1},
Suffix: cLeaf,
Expand All @@ -111,12 +111,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) {
Value: []byte("b"),
Leaf: leafOp,
Path: []*InnerOp{
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: append([]byte{1}, aLeaf...),
Suffix: b2Leaf,
},
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: []byte{1},
Suffix: cLeaf,
Expand All @@ -128,12 +128,12 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) {
Value: []byte("b2"),
Leaf: leafOp,
Path: []*InnerOp{
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: append(append([]byte{1}, aLeaf...), bLeaf...),
Suffix: []byte{},
},
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: []byte{1},
Suffix: cLeaf,
Expand All @@ -146,7 +146,7 @@ func TestForgeNonExistenceProofWithIncorrectMaxPrefixLength(t *testing.T) {
Value: []byte("c"),
Leaf: leafOp,
Path: []*InnerOp{
&InnerOp{
{
Hash: spec.InnerSpec.Hash,
Prefix: append([]byte{1}, yHash...),
Suffix: []byte{},
Expand Down

0 comments on commit b0cce5c

Please sign in to comment.