diff --git a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_input.json b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_input.json index 49392a0..f3d533d 100644 --- a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_input.json +++ b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_input.json @@ -30,5 +30,45 @@ { "date": "2015-10-25T19:30:01", "amount": 120 + }, + { + "date": "2015-10-25T19:34:59", + "amount": 120 + }, + { + "date": "2015-10-25T19:35:00", + "amount": 120 + }, + { + "date": "2015-10-25T19:39:59", + "amount": 119 + }, + { + "date": "2015-10-25T19:40:00", + "amount": 119 + }, + { + "date": "2015-10-25T19:45:00", + "amount": 118 + }, + { + "date": "2015-10-25T19:45:01", + "amount": 118 + }, + { + "date": "2015-10-25T19:49:59", + "amount": 117 + }, + { + "date": "2015-10-25T19:50:00", + "amount": 117 + }, + { + "date": "2015-10-25T19:55:00", + "amount": 116 + }, + { + "date": "2015-10-25T19:55:01", + "amount": 116 } ] diff --git a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_output.json b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_output.json index adfbec4..ffcb262 100644 --- a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_output.json +++ b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_almost_duplicates_output.json @@ -1,12 +1,12 @@ [ { - "value" : -4.61538461538461, + "value" : -4.615384615384616, "startDate" : "2015-10-25T19:15:00", "unit" : "mg\/min·dL", "endDate" : "2015-10-25T19:19:59" }, { - "value" : -2.59136212624585, + "value" : -2.5913621262458473, "startDate" : "2015-10-25T19:19:59", "unit" : "mg\/min·dL", "endDate" : "2015-10-25T19:25:00" @@ -16,5 +16,35 @@ "startDate" : "2015-10-25T19:25:00", "unit" : "mg\/min·dL", "endDate" : "2015-10-25T19:30:00" + }, + { + "value" : 0.0, + "startDate" : "2015-10-25T19:30:00", + "unit" : "mg\/min·dL", + "endDate" : "2015-10-25T19:34:59" + }, + { + "value" : -0.2, + "startDate" : "2015-10-25T19:34:59", + "unit" : "mg\/min·dL", + "endDate" : "2015-10-25T19:39:59" + }, + { + "value" : -0.19933554817275748, + "startDate" : "2015-10-25T19:39:59", + "unit" : "mg\/min·dL", + "endDate" : "2015-10-25T19:45:00" + }, + { + "value" : -0.20066889632107024, + "startDate" : "2015-10-25T19:45:00", + "unit" : "mg\/min·dL", + "endDate" : "2015-10-25T19:49:59" + }, + { + "value" : -0.19933554817275748, + "startDate" : "2015-10-25T19:49:59", + "unit" : "mg\/min·dL", + "endDate" : "2015-10-25T19:55:00" } ] diff --git a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_insulin.json b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_insulin.json index 088b682..84831ce 100644 --- a/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_insulin.json +++ b/Tests/LoopAlgorithmTests/Fixtures/counteraction_effect_falling_glucose_insulin.json @@ -18,5 +18,30 @@ "date": "2015-10-25T19:30:00", "amount": 100, "unit": "mg/dL" + }, + { + "date": "2015-10-25T19:35:00", + "amount": 100, + "unit": "mg/dL" + }, + { + "date": "2015-10-25T19:40:00", + "amount": 100, + "unit": "mg/dL" + }, + { + "date": "2015-10-25T19:45:00", + "amount": 100, + "unit": "mg/dL" + }, + { + "date": "2015-10-25T19:50:00", + "amount": 100, + "unit": "mg/dL" + }, + { + "date": "2015-10-25T19:55:00", + "amount": 100, + "unit": "mg/dL" } ] diff --git a/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_input.json b/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_input.json index f95ecf1..4354d77 100644 --- a/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_input.json +++ b/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_input.json @@ -10,5 +10,21 @@ { "date": "2015-10-25T19:29:37", "amount": 129 + }, + { + "date": "2015-10-25T19:34:36", + "amount": 120 + }, + { + "date": "2015-10-25T19:39:37", + "amount": 129 + }, + { + "date": "2015-10-25T19:44:36", + "amount": 120 + }, + { + "date": "2015-10-25T19:49:37", + "amount": 129 } ] diff --git a/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_output.json b/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_output.json index 8214796..547b1cf 100644 --- a/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_output.json +++ b/Tests/LoopAlgorithmTests/Fixtures/momentum_effect_bouncing_glucose_output.json @@ -1,42 +1,42 @@ [ { - "date": "2015-10-25T19:25:00", + "date": "2015-10-25T19:45:00", "amount": 0.0, "unit": "mg/dL" }, { - "date": "2015-10-25T19:30:00", - "amount": 0.23051025736941719, + "date": "2015-10-25T19:50:00", + "amount": 0.04940302761698802, "unit": "mg/dL" }, { - "date": "2015-10-25T19:35:00", - "amount": 3.2371657882748588, + "date": "2015-10-25T19:55:00", + "amount": 0.69379034436031, "unit": "mg/dL" }, { - "date": "2015-10-25T19:40:00", - "amount": 6.2438213191803005, + "date": "2015-10-25T20:00:00", + "amount": 1.3381776611036318, "unit": "mg/dL" }, { - "date": "2015-10-25T19:45:00", - "amount": 9.2504768500857413, + "date": "2015-10-25T20:05:00", + "amount": 1.9825649778469538, "unit": "mg/dL" }, { - "date": "2015-10-25T19:50:00", - "amount": 12.257132380991184, + "date": "2015-10-25T20:10:00", + "amount": 2.626952294590276, "unit": "mg/dL" }, { - "date": "2015-10-25T19:55:00", - "amount": 15.263787911896625, + "date": "2015-10-25T20:15:00", + "amount": 3.2713396113335977, "unit": "mg/dL" }, { - "date": "2015-10-25T20:00:00", - "amount": 18.270443442802062, + "date": "2015-10-25T20:20:00", + "amount": 3.9157269280769196, "unit": "mg/dL" } ]