@@ -276,7 +276,7 @@ class BolusEntryViewModelTests: XCTestCase {
276
276
func testUpdateRecommendedBolusNoNotice( ) async throws {
277
277
await setUpViewModel ( originalCarbEntry: mockOriginalCarbEntry, potentialCarbEntry: mockPotentialCarbEntry)
278
278
XCTAssertFalse ( bolusEntryViewModel. isBolusRecommended)
279
- let recommendation = ManualBolusRecommendation ( amount: 1.234 , pendingInsulin: 4.321 )
279
+ let recommendation = ManualBolusRecommendation ( amount: 1.25 , pendingInsulin: 4.321 )
280
280
delegate. loopState. bolusRecommendationResult = recommendation
281
281
await bolusEntryViewModel. update ( )
282
282
XCTAssertTrue ( bolusEntryViewModel. isBolusRecommended)
@@ -293,7 +293,7 @@ class BolusEntryViewModelTests: XCTestCase {
293
293
func testUpdateRecommendedBolusWithNotice( ) async throws {
294
294
delegate. settings. suspendThreshold = GlucoseThreshold ( unit: . milligramsPerDeciliter, value: Self . exampleCGMGlucoseQuantity. doubleValue ( for: . milligramsPerDeciliter) )
295
295
XCTAssertFalse ( bolusEntryViewModel. isBolusRecommended)
296
- let recommendation = ManualBolusRecommendation ( amount: 1.234 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . glucoseBelowSuspendThreshold ( minGlucose: Self . exampleGlucoseValue) )
296
+ let recommendation = ManualBolusRecommendation ( amount: 1.25 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . glucoseBelowSuspendThreshold ( minGlucose: Self . exampleGlucoseValue) )
297
297
delegate. loopState. bolusRecommendationResult = recommendation
298
298
await bolusEntryViewModel. update ( )
299
299
XCTAssertTrue ( bolusEntryViewModel. isBolusRecommended)
@@ -306,7 +306,7 @@ class BolusEntryViewModelTests: XCTestCase {
306
306
func testUpdateRecommendedBolusWithNoticeMissingSuspendThreshold( ) async throws {
307
307
XCTAssertFalse ( bolusEntryViewModel. isBolusRecommended)
308
308
delegate. settings. suspendThreshold = nil
309
- let recommendation = ManualBolusRecommendation ( amount: 1.234 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . glucoseBelowSuspendThreshold ( minGlucose: Self . exampleGlucoseValue) )
309
+ let recommendation = ManualBolusRecommendation ( amount: 1.25 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . glucoseBelowSuspendThreshold ( minGlucose: Self . exampleGlucoseValue) )
310
310
delegate. loopState. bolusRecommendationResult = recommendation
311
311
await bolusEntryViewModel. update ( )
312
312
XCTAssertTrue ( bolusEntryViewModel. isBolusRecommended)
@@ -318,7 +318,7 @@ class BolusEntryViewModelTests: XCTestCase {
318
318
319
319
func testUpdateRecommendedBolusWithOtherNotice( ) async throws {
320
320
XCTAssertFalse ( bolusEntryViewModel. isBolusRecommended)
321
- let recommendation = ManualBolusRecommendation ( amount: 1.234 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . currentGlucoseBelowTarget ( glucose: Self . exampleGlucoseValue) )
321
+ let recommendation = ManualBolusRecommendation ( amount: 1.25 , pendingInsulin: 4.321 , notice: BolusRecommendationNotice . currentGlucoseBelowTarget ( glucose: Self . exampleGlucoseValue) )
322
322
delegate. loopState. bolusRecommendationResult = recommendation
323
323
await bolusEntryViewModel. update ( )
324
324
XCTAssertTrue ( bolusEntryViewModel. isBolusRecommended)
@@ -382,7 +382,7 @@ class BolusEntryViewModelTests: XCTestCase {
382
382
await setUpViewModel ( originalCarbEntry: mockOriginalCarbEntry, potentialCarbEntry: mockPotentialCarbEntry)
383
383
bolusEntryViewModel. manualGlucoseQuantity = Self . exampleManualGlucoseQuantity
384
384
XCTAssertFalse ( bolusEntryViewModel. isBolusRecommended)
385
- let recommendation = ManualBolusRecommendation ( amount: 1.234 , pendingInsulin: 4.321 )
385
+ let recommendation = ManualBolusRecommendation ( amount: 1.25 , pendingInsulin: 4.321 )
386
386
delegate. loopState. bolusRecommendationResult = recommendation
387
387
await bolusEntryViewModel. update ( )
388
388
XCTAssertTrue ( bolusEntryViewModel. isBolusRecommended)
0 commit comments