-
Notifications
You must be signed in to change notification settings - Fork 0
first try to test #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
dirtymew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Привет Вячеслав
Хорошая работа - но есть замечания которые нужно поправить.
| func (t Training) meanSpeed() float64 { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return t.distance() / t.Duration.Hours() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут возможно деление на 0 - стоило избежать
main.go
Outdated
| func (r Running) TrainingInfo() InfoMessage { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return InfoMessage{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут неверно см задание внимательно
main.go
Outdated
| func (w Walking) Calories() float64 { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return ((CaloriesWeightMultiplier*w.Weight + (math.Pow(w.meanSpeed(), 2)/w.Height)*CaloriesSpeedHeightMultiplier*w.Weight) * w.Duration.Hours() * MinInHours) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут ошибка в формуле
w.Height в см
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
и возможно деление на 0
main.go
Outdated
| func (w Walking) TrainingInfo() InfoMessage { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return InfoMessage{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
то же замечание что и для Running
| func (s Swimming) TrainingInfo() InfoMessage { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return InfoMessage{ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут как раз все ок - по заданию
| func (s Swimming) meanSpeed() float64 { | ||
| // вставьте ваш код ниже | ||
| ... | ||
| return float64(s.LengthPool) * float64(s.CountPool) / MInKm / s.Duration.Hours() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
тут тоже возможно деление на 0
|
Антон, привет. Спасибо Вам за ваш чуткий взгляд, и что помогаете найти дьявола в деталях. |
dirtymew
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вячеслав
все отлично
зачет
No description provided.