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

ztest: Add macros for comparing strings #73841

Merged

Conversation

rugeGerritsen
Copy link
Collaborator

These macros allows us to compare strings in a simpler way.

These macros allows us to compare strings in a simpler way.

Signed-off-by: Rubin Gerritsen <[email protected]>
Copy link
Collaborator

@bjarki-andreasen bjarki-andreasen left a comment

Choose a reason for hiding this comment

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

I can only say yes please and thank you :)

zassert_equal(strcmp(argv_buffers[0], "+CMGL: "), 0, "Incorrect argv received");
zassert_equal(strcmp(argv_buffers[1], "1"), 0, "Incorrect argv received");
zassert_equal(strcmp(argv_buffers[2], "1"), 0, "Incorrect argv received");
zassert_equal(strcmp(argv_buffers[3], ""), 0, "Incorrect argv received");
zassert_equal(strcmp(argv_buffers[4], "50"), 0, "Incorrect argv received");

@fabiobaltieri fabiobaltieri merged commit a35d5e7 into zephyrproject-rtos:main Jun 11, 2024
28 checks passed
@rugeGerritsen
Copy link
Collaborator Author

@bjarki-trackunit , I've created #74083 as a follow-up

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

Successfully merging this pull request may close these issues.

6 participants