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

first home task #4

Open
wants to merge 95 commits into
base: master
Choose a base branch
from

Conversation

PotapovAlexandr
Copy link

No description provided.

Alexander Potapov added 21 commits October 2, 2018 20:58
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Green
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
}
return 0;
return -1;
Copy link
Collaborator

Choose a reason for hiding this comment

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

нет теста, покрывающего эту строку

@@ -19,13 +19,26 @@ If your language provides a method in the standard library to perform the conver

#include <gtest/gtest.h>

int DemicalView(std::string str)
Copy link
Collaborator

Choose a reason for hiding this comment

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

На этом шаге выполнялся рефакторинг или написание кода?

int answer = 0;
answer += OneSignDemicalView(str.substr(str.size() - 1 , 1));

return (answer > 0)? answer : 0;
Copy link
Collaborator

Choose a reason for hiding this comment

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

нет теста, проверяющего поведение при answer <= 0

@@ -68,3 +68,9 @@ TEST(TernaryNumbers, TwoSignString11)
{
ASSERT_EQ(4, DemicalView("11"));
}


TEST(TernaryNumbers, SpecifcationTest)
Copy link
Collaborator

Choose a reason for hiding this comment

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

В спецификации есть еще ожидаемое поведение при воде невалидной строки. На это нет тестов.

Alexander Potapov added 5 commits October 17, 2018 09:53
RED
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
RED
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Alexander Potapov and others added 30 commits November 7, 2018 15:42
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: PotapovAlexandr <alexpotapov1985@gmail.com>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Red
Signed-off-by: Alexander Potapov <potapov.alexander@dev.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants