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

Add macro to preserve source level expression in Subject #3

Open
mysticfall opened this issue Feb 2, 2015 · 0 comments
Open

Add macro to preserve source level expression in Subject #3

mysticfall opened this issue Feb 2, 2015 · 0 comments

Comments

@mysticfall
Copy link
Member

Consider following example :

val value1 = ...
val value2 = ...

value1 should not be null.
value2 should not be null.

It will fail with a message "Expected null not to match 'null'", which is not very helpful in determining whether value1 or value2 was null.

With macro, we can show a message like "Expected value1 to be different from 'null'" instead, and possibly with a matching line number as well.

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