Skip to content

Change representation of char* from string to array #532

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

Merged
merged 6 commits into from
Nov 14, 2022
Merged

Conversation

kichunya
Copy link
Collaborator

@kichunya kichunya commented Nov 10, 2022

Fixed Incorrect check post condition of char* ([BUG] #463) from string to array

@kichunya kichunya changed the title Kichin e Change representation of char* from string to array Nov 10, 2022
@@ -254,12 +262,12 @@ namespace {
std::vector<TestCasePredicate>(
{ [&predicate](const tests::Tests::MethodTestCase &testCase) {
// empty string
return testCase.paramValues[0].view->getEntryValue(nullptr).length() == 2 &&
return testCase.paramValues[0].view->getEntryValue(nullptr).substr(2,2) == "\\0" &&
Copy link
Member

Choose a reason for hiding this comment

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

Пробел (2, 2)

predicate(testCase);
},
[&predicate](const tests::Tests::MethodTestCase &testCase) {
// non-empty string
return testCase.paramValues[0].view->getEntryValue(nullptr).length() > 2 &&
return testCase.paramValues[0].view->getEntryValue(nullptr).substr(2,2) != "\\0" &&
Copy link
Member

Choose a reason for hiding this comment

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

Пробел (2, 2)

@kichunya kichunya requested a review from sava-cska November 14, 2022 08:07
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