DanaRS_Packet_APS_Basal_Set_Temporary_BasalTest update

This commit is contained in:
Milos Kozak 2018-08-02 16:22:22 +02:00
parent 5d7bebbbdc
commit 1ae885cb17

View file

@ -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);