Skip to content

Change the assert_eq message to be more verbose and pretty #7695

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

Closed
wants to merge 2 commits into from
Closed

Change the assert_eq message to be more verbose and pretty #7695

wants to merge 2 commits into from

Conversation

emberian
Copy link
Member

This changes it from

left: true does not equal right: false

to

assertion failed: `(left == right) && (right == left)` (left: `true`, right: `false`)

@pnkfelix
Copy link
Member

(@cmr: If we're going to that level of verbosity for this, should we consider indicating somehow which direction failed? having said that, I'm cool with this as is.)

bors added a commit that referenced this pull request Jul 12, 2013
This changes it from 

```
left: true does not equal right: false
```

to

```
assertion failed: `(left == right) && (right == left)` (left: `true`, right: `false`)
```
@bors bors closed this Jul 12, 2013
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 this pull request may close these issues.

3 participants