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

added std::fill_n #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

czertyaka
Copy link
Owner

No description provided.

@czertyaka czertyaka linked an issue Nov 28, 2023 that may be closed by this pull request
@czertyaka czertyaka self-assigned this Nov 28, 2023
@@ -74,7 +77,8 @@ TEST_F(ModifyTests, PushBadArgs)
TEST_F(ModifyTests, PopBadArgs)
{
const size_t size = 5;
const int data_in[size] = {1};
int data_in[size] = {0};
std::fill_n(data_in, size, 1);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Может для однозначности понимания теста в 87 строчке сделать также?

int data_out[size-1] = {0}
std::fill_n(data_out, size - 1, 0)

С точки зрения выполняемого кода будет одна лишняя команда, но она добавит однозначности в сам тест

Copy link
Collaborator

@Mako-D Mako-D left a comment

Choose a reason for hiding this comment

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

Добавил предложение для однозначности восприятия теста PopBadArgs

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.

Корректность теста PopBadArgs
2 participants