File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -259,9 +259,7 @@ final class LoopAlgorithmTests: XCTestCase {
259259 let output = LoopAlgorithm . run ( input: input)
260260
261261 // Should recommend bolus to cover meal
262- XCTAssertEqual (
263- output. predictedGlucose. last!. quantity. doubleValue ( for: . milligramsPerDeciliter) , 269 ,
264- accuracy: 0.1 )
262+ XCTAssertEqual ( output. predictedGlucose. last!. quantity. doubleValue ( for: . milligramsPerDeciliter) , 269 , accuracy: 0.1 )
265263 XCTAssertEqual ( output. recommendation!. manual!. amount, 2.16 , accuracy: 0.01 )
266264
267265 // Now check forecast if bolus recommendation is accepted and delivered.
@@ -277,12 +275,10 @@ final class LoopAlgorithmTests: XCTestCase {
277275 let output2 = LoopAlgorithm . run ( input: input)
278276
279277 // 150 mg/dL is the middle of the target range
280- XCTAssertEqual (
281- output2. predictedGlucose. last!. quantity. doubleValue ( for: . milligramsPerDeciliter) , 150 ,
282- accuracy: 0.1 )
278+ XCTAssertEqual ( output2. predictedGlucose. last!. quantity. doubleValue ( for: . milligramsPerDeciliter) , 150 , accuracy: 0.1 )
283279 }
284280
285- func testMidAborptionISFFlag ( ) {
281+ func testMidAbsorptionISFFlag ( ) {
286282 let now = ISO8601DateFormatter ( ) . date ( from: " 2024-01-03T00:00:00+0000 " ) !
287283 var input = AlgorithmInputFixture . mock ( for: now)
288284
You can’t perform that action at this time.
0 commit comments