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