[ledger] Fix argument order in require.Equal.

This commit is contained in:
Arseny Balobanov 2022-03-31 17:41:44 +03:00
parent 2d58ba80db
commit 1053c1a566

View file

@ -25,7 +25,7 @@ func TestLedger(t *testing.T) {
checkBalance := func(account ledger.ID, amount ledger.Money) { checkBalance := func(account ledger.ID, amount ledger.Money) {
b, err := l0.GetBalance(ctx, account) b, err := l0.GetBalance(ctx, account)
require.NoError(t, err) require.NoError(t, err)
require.Equal(t, b, amount) require.Equal(t, amount, b)
} }
require.NoError(t, l0.CreateAccount(ctx, "a0")) require.NoError(t, l0.CreateAccount(ctx, "a0"))
@ -130,6 +130,6 @@ func TestLedger(t *testing.T) {
total += amount total += amount
} }
require.Equal(t, total, ledger.Money(initialBalance*nAccounts)) require.Equal(t, ledger.Money(initialBalance*nAccounts), total)
}) })
} }