fix mistake in tests

no idea why this passed before, it clearly shouldn't
This commit is contained in:
Folkert 2020-10-14 16:37:53 +02:00
parent 8338296da2
commit 62ed1508d5
2 changed files with 41 additions and 21 deletions

View file

@ -31,21 +31,11 @@ macro_rules! mismatch {
println!("");
}
vec![Mismatch::TypeMismatch]
}};
($msg:expr,) => {{
if cfg!(debug_assertions) {
println!(
"Mismatch in {} Line {} Column {}",
file!(),
line!(),
column!()
);
println!($msg);
println!("");
}
vec![Mismatch::TypeMismatch]
mismatch!($msg)
}};
($msg:expr, $($arg:tt)*) => {{
if cfg!(debug_assertions) {