DanaRS_Packet_APS_Basal_Set_Temporary_BasalTest update
This commit is contained in:
parent
5d7bebbbdc
commit
1ae885cb17
1 changed files with 3 additions and 0 deletions
|
@ -38,6 +38,9 @@ public class DanaRS_Packet_APS_Basal_Set_Temporary_BasalTest {
|
||||||
packet = new DanaRS_Packet_APS_Basal_Set_Temporary_Basal(10);
|
packet = new DanaRS_Packet_APS_Basal_Set_Temporary_Basal(10);
|
||||||
assertEquals(10, packet.temporaryBasalRatio);
|
assertEquals(10, packet.temporaryBasalRatio);
|
||||||
assertEquals(packet.PARAM30MIN, packet.temporaryBasalDuration);
|
assertEquals(packet.PARAM30MIN, packet.temporaryBasalDuration);
|
||||||
|
packet = new DanaRS_Packet_APS_Basal_Set_Temporary_Basal(20, true, false);
|
||||||
|
assertEquals(20, packet.temporaryBasalRatio);
|
||||||
|
assertEquals(packet.PARAM15MIN, packet.temporaryBasalDuration);
|
||||||
// over 100% should last 15 min
|
// over 100% should last 15 min
|
||||||
packet.setParams(150);
|
packet.setParams(150);
|
||||||
assertEquals(150, packet.temporaryBasalRatio);
|
assertEquals(150, packet.temporaryBasalRatio);
|
||||||
|
|
Loading…
Reference in a new issue