parent
d4c3f21bee
commit
6454616c68
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
|||
package app.aaps.plugins.automation.elements
|
||||
|
||||
import app.aaps.plugins.automation.triggers.TriggerTestBase
|
||||
import org.junit.jupiter.api.Assertions
|
||||
import com.google.common.truth.Truth.assertThat
|
||||
import org.junit.jupiter.api.Test
|
||||
|
||||
class InputInsulinTest : TriggerTestBase() {
|
||||
|
@ -9,6 +9,6 @@ class InputInsulinTest : TriggerTestBase() {
|
|||
@Test fun setValueTest() {
|
||||
val i = InputInsulin()
|
||||
i.value = 5.0
|
||||
Assertions.assertEquals(5.0, i.value, 0.01)
|
||||
assertThat(i.value).isWithin(0.01).of(5.0)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue