Fixed that quantity is now of type Double
This commit is contained in:
parent
5d8079cfd4
commit
2b0f9fcc71
|
@ -12,7 +12,7 @@ class FinTs4kMapperTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun getTotalBalance_TotalBalanceIsNull_CalculateByQuantityAndMarketValue() {
|
fun getTotalBalance_TotalBalanceIsNull_CalculateByQuantityAndMarketValue() {
|
||||||
val holding = Holding("", null, null, null, 4, null, null, null, fints4kAmount("13.33"))
|
val holding = Holding("", null, null, null, 4.0, null, null, null, fints4kAmount("13.33"))
|
||||||
|
|
||||||
val result = underTest.getTotalBalance(holding)
|
val result = underTest.getTotalBalance(holding)
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ class FinTs4kMapperTest {
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
fun getTotalCostPrice_TotalCostPriceIsNull_CalculateByQuantityAndAverageCostPrice() {
|
fun getTotalCostPrice_TotalCostPriceIsNull_CalculateByQuantityAndAverageCostPrice() {
|
||||||
val holding = Holding("", null, null, null, 47, fints4kAmount("16.828"), null)
|
val holding = Holding("", null, null, null, 47.0, fints4kAmount("16.828"), null)
|
||||||
|
|
||||||
val result = underTest.getTotalCostPrice(holding)
|
val result = underTest.getTotalCostPrice(holding)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue