Skip to content

02 ternary numbers#5

Open
tolikheha wants to merge 8 commits intodriverdevteam:masterfrom
tolikheha:02_ternary_numbers
Open

02 ternary numbers#5
tolikheha wants to merge 8 commits intodriverdevteam:masterfrom
tolikheha:02_ternary_numbers

Conversation

@tolikheha
Copy link

No description provided.


TEST (ternary_numbers, check_302)
{
EXPECT_EQ(302, convert("102012"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

первый сложный тест, антипаттерн Слишком сложный начальный тест


TEST (ternary_numbers, check_302)
{
EXPECT_EQ(302, convert("102012"));
Copy link
Collaborator

Choose a reason for hiding this comment

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

непонятно зачем выносить строку

EXPECT_EQ(333, convert(g_ternary333));
EXPECT_EQ(765, convert(g_ternary765));
EXPECT_EQ(345, convert(g_ternary345));
EXPECT_EQ(-1, convert(""));
Copy link
Collaborator

Choose a reason for hiding this comment

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

требование в задании 0 в случае невалидности

}


TEST (ternary_numbers, acceptance)
Copy link
Collaborator

Choose a reason for hiding this comment

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

нет негативного теста, если например будет больше 2 строке, судя по функции, она не отработает как нужно

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.

2 participants