From 7f7df2bb06e5b2493c3570ad3ca38f31c5b73150 Mon Sep 17 00:00:00 2001 From: Patrick O'Grady Date: Tue, 1 Dec 2020 17:31:53 -0600 Subject: [PATCH] add test for empty string --- asserter/block_test.go | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/asserter/block_test.go b/asserter/block_test.go index 738a9259..7f3248a9 100644 --- a/asserter/block_test.go +++ b/asserter/block_test.go @@ -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{