Skip to content
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

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

STELLSAN
Copy link
Contributor

Choice lab

@STELLSAN
Copy link
Contributor Author

STELLSAN commented Oct 5, 2024

Реализованная Лабораторная работа #2

Copy link

codecov bot commented Oct 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.10%. Comparing base (0735d63) to head (e73414d).

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           

@@ -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|
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
| [Вычисление скидок на книги](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||

Comment on lines +10 to +16
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 };
};
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

struct?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Обработайте случай, если на вход подается пустой вектор

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Добавьте тест, который проверяет случай, когда приходит пустой вектор

@Kuznetsov-Artyom
Copy link
Collaborator

Please rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants