Skip to content

Commit

Permalink
Change the assert_eq message to be more verbose.
Browse files Browse the repository at this point in the history
Closes #6221
  • Loading branch information
emberian committed Jul 10, 2013
1 parent 8fa0973 commit 8dc6445
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/libsyntax/ext/expand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,8 @@ pub fn core_macros() -> @str {
let expected_val = $expected;
// check both directions of equality....
if !((given_val == expected_val) && (expected_val == given_val)) {
fail!(\"left: %? does not equal right: %?\", given_val, expected_val);
fail!(\"assertion failed: `(left == right) && (right == \
left)` (left: `%?`, right: `%?`)\", given_val, expected_val);
}
}
)
Expand Down

0 comments on commit 8dc6445

Please sign in to comment.