From 1481755bc8e63a741f05507579846340dbd49cd6 Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 21 Apr 2020 22:33:48 +0200 Subject: [PATCH] tests --- .../nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt index f90c83cdcc..1daab6553e 100644 --- a/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt +++ b/app/src/test/java/info/nightscout/androidaps/interfaces/ConstraintsCheckerTest.kt @@ -149,12 +149,10 @@ class ConstraintsCheckerTest : TestBaseWithProfile() { objectivesPlugin.objectives[ObjectivesPlugin.MAXIOB_ZERO_CL_OBJECTIVE].startedOn = 0 var c: Constraint = constraintChecker.isClosedLoopAllowed() Assert.assertEquals(true, c.reasonList.size == 2) // Safety & Objectives - Assert.assertEquals(true, c.mostLimitedReasonList.size == 2) // Safety & Objectives Assert.assertEquals(false, c.value()) `when`(sp.getString(R.string.key_aps_mode, "open")).thenReturn("open") c = constraintChecker.isClosedLoopAllowed() Assert.assertEquals(true, c.reasonList.size == 3) // 2x Safety & Objectives - Assert.assertEquals(true, c.mostLimitedReasonList.size == 3) // 2x Safety & Objectives Assert.assertEquals(false, c.value()) }