1
0
Fork 0
forked from wry/wry

it: test foreign-toplevel-list

This commit is contained in:
Julian Orth 2024-04-02 15:57:41 +02:00
parent 6fe6b1b491
commit a39031d4f9
12 changed files with 276 additions and 18 deletions

View file

@ -13,18 +13,20 @@ macro_rules! tassert {
macro_rules! tassert_eq {
($left:expr, $right:expr) => {{
let left = $left;
let right = $right;
if left != right {
bail!(
"Assert `{} = {:?} = {:?} = {}` failed ({}:{})",
stringify!($left),
left,
right,
stringify!($right),
file!(),
line!()
);
match ($left, $right) {
(left, right) => {
if left != right {
bail!(
"Assert `{} = {:?} = {:?} = {}` failed ({}:{})",
stringify!($left),
left,
right,
stringify!($right),
file!(),
line!()
);
}
}
}
}};
}