-
Notifications
You must be signed in to change notification settings - Fork 210
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
Make string difference more readable #89
base: master
Are you sure you want to change the base?
Conversation
I agree that this output is cleaner, but this commit will change the behavior for all users, and I am hesitant to make such a change due to the wide userbase. Alternatively, this could be controlled with a flag (variable) so that users can choose to enable it, similar to the Thoughts? |
The pull as is needs to be rewritten to align with coding standards (function name, variable names, variable cleanup, etc.). |
yes, I have realized that. it might break someone's code.
@kward could you give out some reference commit that can show me how to add a new flag compatibility? |
I will revise the lines of modified code to align with the coding style in the commit of changing flag controlled way |
With this patch: ``` assertEquals "deadbeef" "deadbuff" ``` will output like this ``` ASSERT: expected:<deadbeef> ---------------^ but was :<deadbuff> ``` set env variable SHUNIT_DIFF_ALIGN=[always/never/auto]
58620f6
to
a47a266
Compare
@kward i have finished my code change revising of both styling and adding a SHUNIT_DIFF_ALIGN=always bash ut.sh |
With this patch:
will output like this