vms: Add test of avm.Tx.SemanticVerify with nil transaction

This commit is contained in:
Alex Willmer 2020-04-13 11:19:21 +01:00
parent 12aa3897b3
commit cd23540e4e
1 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,9 @@ func TestTxNil(t *testing.T) {
if err := tx.SyntacticVerify(ctx, c, 1); err == nil {
t.Fatalf("Should have errored due to nil tx")
}
if err := tx.SemanticVerify(nil, nil); err == nil {
t.Fatalf("Should have errored due to nil tx")
}
}
func TestTxEmpty(t *testing.T) {