[ledger] Fix argument order in require.Equal.
This commit is contained in:
parent
2d58ba80db
commit
1053c1a566
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue