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

Test assert macro that outputs the condition? #746

Open
hart-NTP opened this issue Aug 22, 2024 · 0 comments
Open

Test assert macro that outputs the condition? #746

hart-NTP opened this issue Aug 22, 2024 · 0 comments

Comments

@hart-NTP
Copy link
Contributor

I just spent some time trying to find a Unity test assertion macro that includes the failed condition source code in the logged message, as classic assertion macros do, for example

assert(a != NULL);

prints a message including "a != NULL". Is there an equivalent functionality in Unity test assertions, if not, any particular reason why not?

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

No branches or pull requests

1 participant