-
Notifications
You must be signed in to change notification settings - Fork 24
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
Verify assert unreadable in failing cases #58
Comments
I'm not sure if I completely understand your issue here.
|
I was expecting the verify builders to automatically output something useful. This is just shorter while doing the same thing:
vs
|
I may be wrong, but CraftSpider might be working on something related to setting or cleaning up the assertion errors. There was mention of a similar issue in the discord server at least. Since the verify builder returns itself, you can take the lengthy verify call chain and assign it to a variable instead of having the whole chain in the assert. It isn't really less typing for you, but it would keep the lines short and more easy to grok at a glance:
|
Assigning the variable is an option, I'm working on improving that default assert message. Most likely I'll be making the verify stringify/repr output include details about how the assertion failed, making the assert output look like the desired 'expected/got' without any extra work. |
Note: The new style is about the same number of characters as the old |
Code:
Got:
Expected:
which is from
The text was updated successfully, but these errors were encountered: