macro_rules! format_eq {
($lhs:expr, [$($rhs:literal),* $(,)?]) => { ... };
($fmt:literal, $lhs:expr, [$($rhs:literal),* $(,)?]) => { ... };
}Expand description
Formats the $lhs expression using Display and asserts the $rhs string literals.
Passes $fmt to Display with {} as default if omitted. Appends "\n" to each $rhs
literal and asserts the concatenation thereof.
With the pretty_assertions feature, the respective assert_eq! macro is used. In this way,
the Unicode combining diacritical marks are rendered as in the examples using format_eq!.