test #197
|
@ -237,7 +237,7 @@ class RouletteService(
|
||||||
}
|
}
|
||||||
|
|
||||||
val totalPercentage = items.map { it.percentage }.sum()
|
val totalPercentage = items.map { it.percentage }.sum()
|
||||||
if (totalPercentage > 100.1f || totalPercentage < 99.9f) {
|
if (totalPercentage > 100.1f || totalPercentage <= 99.99f) {
|
||||||
throw SodaException("확률이 100%가 아닙니다")
|
throw SodaException("확률이 100%가 아닙니다")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue