add more assertions

This commit is contained in:
c9s 2020-08-04 17:12:01 +08:00
parent 7741cb11d6
commit caf7ea3679

View File

@ -28,6 +28,7 @@ func TestStockManager(t *testing.T) {
assert.NoError(t, err)
assert.Equal(t, 0.72970242, stockManager.Stocks.Quantity())
assert.NotEmpty(t, stockManager.Stocks)
assert.Equal(t, 20, len(stockManager.Stocks))
assert.Equal(t, 0, len(stockManager.PendingSells))
})