Skip to content

Commit

Permalink
add test for empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-ogrady committed Dec 1, 2020
1 parent a954dc4 commit 7f7df2b
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions asserter/block_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -405,6 +405,21 @@ func TestOperation(t *testing.T) {
construction: true,
err: nil,
},
"valid construction operation (empty status)": {
operation: &types.Operation{
OperationIdentifier: &types.OperationIdentifier{
Index: int64(1),
},
Type: "PAYMENT",
Status: types.String(""),
Account: validAccount,
Amount: validAmount,
},
index: int64(1),
successful: false,
construction: true,
err: nil,
},
"invalid construction operation": {
operation: &types.Operation{
OperationIdentifier: &types.OperationIdentifier{
Expand Down

0 comments on commit 7f7df2b

Please sign in to comment.