-
Notifications
You must be signed in to change notification settings - Fork 69
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
Неделин Дмитрий - Лабораторная Работа #2 #394
Conversation
Реализованная Лабораторная работа #2 |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #394 +/- ##
=======================================
Coverage 94.09% 94.10%
=======================================
Files 186 186
Lines 6100 6109 +9
=======================================
+ Hits 5740 5749 +9
Misses 360 360 |
lab-guide/topics.md
Outdated
@@ -100,7 +100,7 @@ | |||
|---|---|---| | |||
| [Игра "Жизнь" Конвея](https://github.com/garora/TDD-Katas/blob/master/KatasReadme.md#game-of-life-) |Кудинов Никита 3821Б1ПР1|Киселёв Игорь 3821Б1ПР1| | |||
| [Правило 30](https://en.wikipedia.org/wiki/Rule_30) ||| | |||
| [Вычисление скидок на книги](https://github.com/garora/TDD-Katas/blob/master/KatasReadme.md#harry-potter-) ||| | |||
| [Вычисление скидок на книги](https://github.com/garora/TDD-Katas/blob/master/KatasReadme.md#harry-potter-) |Неделин Дмитрий 3821Б1ПР3|Неделин Дмитрий 3821Б1ПР3| |
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.
| [Вычисление скидок на книги](https://github.com/garora/TDD-Katas/blob/master/KatasReadme.md#harry-potter-) |Неделин Дмитрий 3821Б1ПР3|Неделин Дмитрий 3821Б1ПР3| | |
| [Вычисление скидок на книги](https://github.com/garora/TDD-Katas/blob/master/KatasReadme.md#harry-potter-) |Неделин Дмитрий 3821Б1ПР3|Неделин Дмитрий 3821Б1ПР3|| |
class HarryPotterBooks { | ||
public: | ||
double calculateTotalPrice(std::vector<int> books); | ||
|
||
const double bookPrice = 8.0; | ||
const std::vector<double> discounts = { 0.0, 0.0, 0.05, 0.1, 0.2, 0.25 }; | ||
}; |
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.
struct?
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.
Обработайте случай, если на вход подается пустой вектор
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.
Добавьте тест, который проверяет случай, когда приходит пустой вектор
Please rebase |
e73414d
to
4e54692
Compare
Choice lab