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

extended ZEN_EXPECT while logging x value #34

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Sudhanva21
Copy link

Extended ZEN_EXPECT with helper macros fro various types of comparison and also logs the value of x when the test case fails.

Sudhanva21 and others added 2 commits April 25, 2024 00:33
Added bool to check for the expression to be true or false
@Sudhanva21
Copy link
Author

Sudhanva21 commented Apr 25, 2024

I have named the function as to_string i think its causing an error if ok then i will change the name of that function then commit and also inform me about the arguments as i have passed one more in ZEN_EXPECT to log the value of x.

I was passing two arguments so the error occurred in test case. I removed it without changing the actual context. Also renamed the function
@Sudhanva21
Copy link
Author

Sorry for the inconvenience. Can you please again review the changes i have committed in this branch only

@heinsaar
Copy link
Owner

@Sudhanva21 Thanks for your efforts.

Your changes break the build.

Please follow the instructions in on how to build & test locally on your machine and first ensure that your local build succeeds and passes all tests.

Also, follow the issue #33 description more closely; for example, the ZEN_EXPECT macro has to stay backward-compatible (it currently accepts one argument - any expression - and that has to stay the same).

Also, you've introduced to_string, which is unnecessary since STL already has it as std::to_string().

@Sudhanva21
Copy link
Author

Sure, Sir. Sorry for the inconvenience. I will first try to pass all the test cases locally and then commit the final changes to this branch.

@heinsaar
Copy link
Owner

@Sudhanva21 No worries at all and thank you for your efforts. I'd advise not to try to be fast on any new project, but careful and correct first. And it's okay if it takes multiple iterations & discussions.

…e-logging-x-value' into alpha.h/extended-ZEN_EXPECT-while-logging-x-value
@Sudhanva21
Copy link
Author

Hey..This time i have build and run on my local machine and all the test cases passed. Pls review it

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