Adding training commer to be more consistent with prior format.

This commit is contained in:
Giles Cope 2017-06-22 22:18:57 +01:00
parent 49cf0c4a55
commit 940d5ca3d0

View File

@ -117,7 +117,7 @@ macro_rules! assert_eq {
(left_val, right_val) => {
if !(*left_val == *right_val) {
panic!(r#"assertion failed: `(left == right)`
left: `{:?}`
left: `{:?}`,
right: `{:?}`"#, left_val, right_val)
}
}
@ -128,7 +128,7 @@ macro_rules! assert_eq {
(left_val, right_val) => {
if !(*left_val == *right_val) {
panic!(r#"assertion failed: `(left == right)`
left: `{:?}`
left: `{:?}`,
right: `{:?}`: {}"#, left_val, right_val,
format_args!($($arg)+))
}
@ -165,7 +165,7 @@ macro_rules! assert_ne {
(left_val, right_val) => {
if *left_val == *right_val {
panic!(r#"assertion failed: `(left != right)`
left: `{:?}`
left: `{:?}`,
right: `{:?}`"#, left_val, right_val)
}
}
@ -176,7 +176,7 @@ macro_rules! assert_ne {
(left_val, right_val) => {
if *left_val == *right_val {
panic!(r#"assertion failed: `(left != right)`
left: `{:?}`
left: `{:?}`,
right: `{:?}`: {}"#, left_val, right_val,
format_args!($($arg)+))
}