Format component size_of_test

This commit is contained in:
chansuke 2018-09-10 21:31:38 +09:00
parent f7630dad87
commit 52a11d8237

View file

@ -13,16 +13,22 @@ macro_rules! size_of_test {
panic!( panic!(
"Your changes have decreased the stack size of {} from {} to {}. \ "Your changes have decreased the stack size of {} from {} to {}. \
Good work! Please update the expected size in {}.", Good work! Please update the expected size in {}.",
stringify!($t), old, new, file!() stringify!($t),
old,
new,
file!()
) )
} else if new > old { } else if new > old {
panic!( panic!(
"Your changes have increased the stack size of {} from {} to {}. \ "Your changes have increased the stack size of {} from {} to {}. \
Please consider choosing a design which avoids this increase. \ Please consider choosing a design which avoids this increase. \
If you feel that the increase is necessary, update the size in {}.", If you feel that the increase is necessary, update the size in {}.",
stringify!($t), old, new, file!() stringify!($t),
old,
new,
file!()
) )
} }
} }
} };
} }