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

Allow optional argument names (replacing "left"/"right") #37

Closed
rivy opened this issue Jan 1, 2020 · 0 comments
Closed

Allow optional argument names (replacing "left"/"right") #37

rivy opened this issue Jan 1, 2020 · 0 comments

Comments

@rivy
Copy link

rivy commented Jan 1, 2020

"left" and "right" are semantically neutral labels. In many cases, it would be easier to understand what is actually failing if the labels could be changed to a something with more meaning (eg, "expect" and "actual"). An example proposed use and output ...

assert_eq!( expect: [1, 2, 4], actual: [1, 2, 8]);

thread 'main' panicked at 'assertion failed: `(expect == actual)`

Diff < expect / actual > :
 [
     1,
     2,
<    4,
>    8,
 ]
' ...
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 a pull request may close this issue.

1 participant