refactor tests

This commit is contained in:
c9s 2024-10-04 23:46:43 +08:00
parent 8f0d58aee9
commit a718e30bb4
No known key found for this signature in database
GPG Key ID: 7385E7E464CB0A54

View File

@ -187,13 +187,13 @@ func Test_aggregateUsdValue(t *testing.T) {
{
name: "mixed",
args: args{
balances: types.BalanceMap{
"USDC": types.Balance{Currency: "USDC", Available: Number(70.0 + 80.0)},
"USDT": types.Balance{Currency: "USDT", Available: Number(100.0)},
"BTC": types.Balance{Currency: "BTC", Available: Number(0.01)},
},
balances: BalancesFromText(`
USDC, 150.0
USDT, 100.0
BTC, 0.01
`),
},
want: number(250.0),
want: Number(250.0),
},
}
for _, tt := range tests {