Change the assert_eq message to be more verbose.

Closes #6221
This commit is contained in:
Corey Richardson 2013-07-10 13:07:26 -04:00
parent 8fa09736ef
commit 8dc6445e38

View File

@ -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);
}
}
)