Fix up assertion errors in set_eq and visual tests

This commit is contained in:
Keith Simmons 2022-05-10 11:09:49 -07:00
parent 37c921f972
commit 3f1640a9a0
2 changed files with 13 additions and 5 deletions

View file

@ -49,12 +49,12 @@ macro_rules! assert_set_eq {
let left = $left;
let right = $right;
match set_eq!(left, right) {
match set_eq!(&left, &right) {
Err(SetEqError::LeftMissing(missing)) => {
panic!("assertion failed: `(left == right)`\n left: {:?}\nright: {:?}\nright does not contain {:?}", left, right, missing);
panic!("assertion failed: `(left == right)`\n left: {:?}\nright: {:?}\nright does not contain {:?}", &left, &right, &missing);
},
Err(SetEqError::RightMissing(missing)) => {
panic!("assertion failed: `(left == right)`\n left: {:?}\nright: {:?}\nleft does not contain {:?}", left, right, missing);
panic!("assertion failed: `(left == right)`\n left: {:?}\nright: {:?}\nleft does not contain {:?}", &left, &right, &missing);
},
_ => {}
}