fix tests
This commit is contained in:
parent
444915ebf7
commit
5e9b03cffd
|
@ -162,7 +162,7 @@ sealed class ProfileSealed(
|
||||||
}
|
}
|
||||||
for (target in targetBlocks) {
|
for (target in targetBlocks) {
|
||||||
if (!hardLimits.isInRange(
|
if (!hardLimits.isInRange(
|
||||||
Round.roundTo(target.lowTarget, 0.1),
|
Profile.toMgdl(target.lowTarget, units),
|
||||||
HardLimits.VERY_HARD_LIMIT_MIN_BG[0].toDouble(),
|
HardLimits.VERY_HARD_LIMIT_MIN_BG[0].toDouble(),
|
||||||
HardLimits.VERY_HARD_LIMIT_MIN_BG[1].toDouble()
|
HardLimits.VERY_HARD_LIMIT_MIN_BG[1].toDouble()
|
||||||
)
|
)
|
||||||
|
@ -172,7 +172,7 @@ sealed class ProfileSealed(
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
if (!hardLimits.isInRange(
|
if (!hardLimits.isInRange(
|
||||||
Round.roundTo(target.highTarget, 0.1),
|
Profile.toMgdl(target.highTarget, units),
|
||||||
HardLimits.VERY_HARD_LIMIT_MAX_BG[0].toDouble(),
|
HardLimits.VERY_HARD_LIMIT_MAX_BG[0].toDouble(),
|
||||||
HardLimits.VERY_HARD_LIMIT_MAX_BG[1].toDouble()
|
HardLimits.VERY_HARD_LIMIT_MAX_BG[1].toDouble()
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue