Fixed that quantity is now of type Double

This commit is contained in:
dankito 2024-10-16 20:06:08 +02:00
parent 5d8079cfd4
commit 2b0f9fcc71
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ class FinTs4kMapperTest {
@Test
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)
@ -21,7 +21,7 @@ class FinTs4kMapperTest {
@Test
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)