Skip to content

Commit 65e8ba1

Browse files
committed
Add LogicSig.Equal
1 parent 16ed4e2 commit 65e8ba1

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

data/transactions/transaction_test.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,3 +142,15 @@ func TestEvalDataEquality(t *testing.T) {
142142
}
143143

144144
}
145+
146+
func TestLogicSigEquality(t *testing.T) {
147+
partitiontest.PartitionTest(t)
148+
t.Parallel()
149+
150+
var empty LogicSig
151+
for _, nz := range basics_testing.NearZeros(t, LogicSig{}) {
152+
ls := nz.(LogicSig)
153+
assert.False(t, ls.Equal(&empty), "Equal() seems to be disregarding something %+v", ls)
154+
}
155+
156+
}

0 commit comments

Comments
 (0)