Skip to content

Commit

Permalink
Update main_test.go
Browse files Browse the repository at this point in the history
  • Loading branch information
bbrodriges authored Feb 2, 2024
1 parent 1335989 commit 75adff7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/fitnesstest/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ func (s *FitnessSuite) TestRunningSpentCalories() {
weightNum := float64(rnd.Int63n(140-80) + 80)

meanSpeed := testMeanSpeed(actionsNum, durationNum)
expected := ((_runningCaloriesMeanSpeedMultiplier*meanSpeed + _runningCaloriesMeanSpeedShift) * weightNum / _mInKm * durationNum * _minInH)
expected := ((_runningCaloriesMeanSpeedMultiplier * meanSpeed * _runningCaloriesMeanSpeedShift) * weightNum / _mInKm * durationNum * _minInH)

res := RunningSpentCalories(actionsNum, weightNum, durationNum)
s.Assert().InDelta(expected, res, 0.05, "Значение полученное из функции RunningSpentCalories не совпадает с ожидаемым")
Expand Down

0 comments on commit 75adff7

Please sign in to comment.