mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-22 14:55:16 +00:00
refactor tests
This commit is contained in:
parent
8f0d58aee9
commit
a718e30bb4
|
@ -187,13 +187,13 @@ func Test_aggregateUsdValue(t *testing.T) {
|
||||||
{
|
{
|
||||||
name: "mixed",
|
name: "mixed",
|
||||||
args: args{
|
args: args{
|
||||||
balances: types.BalanceMap{
|
balances: BalancesFromText(`
|
||||||
"USDC": types.Balance{Currency: "USDC", Available: Number(70.0 + 80.0)},
|
USDC, 150.0
|
||||||
"USDT": types.Balance{Currency: "USDT", Available: Number(100.0)},
|
USDT, 100.0
|
||||||
"BTC": types.Balance{Currency: "BTC", Available: Number(0.01)},
|
BTC, 0.01
|
||||||
},
|
`),
|
||||||
},
|
},
|
||||||
want: number(250.0),
|
want: Number(250.0),
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
for _, tt := range tests {
|
for _, tt := range tests {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user