Skip to content

Commit

Permalink
Fix voice announcement tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
dennisguse committed Jun 9, 2022
1 parent 74bfed7 commit b822d05
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -253,9 +253,9 @@ public void getAnnouncement_only_lap_heart_rate() {
SensorStatistics sensorStatistics = new SensorStatistics(HeartRate.of(180f), HeartRate.of(180f), null, null, null);

// when
String announcement = VoiceAnnouncementUtils.getAnnouncement(context, stats, true, true, lastInterval, sensorStatistics).toString();
String announcement = VoiceAnnouncementUtils.getAnnouncement(context, stats, UnitSystem.METRIC, true, lastInterval, sensorStatistics).toString();

// then
assertEquals(" Current heart rate 132 bpm,", announcement);
assertEquals(" Current heart rate 133 bpm.", announcement);
}
}

0 comments on commit b822d05

Please sign in to comment.