macro_rules! assert_render_eq {
($renderable:expr, $expected:expr, width = $width:expr $(,)?) => { ... };
($renderable:expr, $expected:expr, width = $width:expr, $($arg:tt)+) => { ... };
($renderable:expr, $expected:expr $(,)?) => { ... };
($renderable:expr, $expected:expr, $($arg:tt)+) => { ... };
}Expand description
Assert a renderable renders as expected at width (default 80)
through a plain, deterministic target; trailing whitespace is ignored.
rich_ext::assert_render_eq!(rich::Text::new("hello world"), "hello\nworld\n", width = 6);