parent
214dae1b24
commit
9f5333645e
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
package app.aaps.plugins.automation.elements
|
package app.aaps.plugins.automation.elements
|
||||||
|
|
||||||
import app.aaps.plugins.automation.triggers.TriggerTestBase
|
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
|
import org.junit.jupiter.api.Test
|
||||||
|
|
||||||
class InputPercentTest : TriggerTestBase() {
|
class InputPercentTest : TriggerTestBase() {
|
||||||
|
@ -9,6 +9,6 @@ class InputPercentTest : TriggerTestBase() {
|
||||||
@Test fun setValueTest() {
|
@Test fun setValueTest() {
|
||||||
val i = InputPercent()
|
val i = InputPercent()
|
||||||
i.value = 10.0
|
i.value = 10.0
|
||||||
Assertions.assertEquals(10.0, i.value, 0.01)
|
assertThat(i.value).isWithin(0.01).of(10.0)
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue