macro_rules! assert_str_trim_ne {
($left:expr, $right:expr $(,)?) => { ... };
($left:expr, $right:expr, $($arg:tt)+) => { ... };
}Expand description
Asserts that multiline strings(&str or String) are not identical
when every line is trimmed and empty lines are removed. It ignores different
new line characters for different OSes: \n or \r\n.
ยงExamples
Test on inequality of two trimmed strings:
use assert_str::assert_str_trim_ne;
assert_str_trim_ne!("<html>\t \n\t<head> \n\t</head></html>",
"<HTML><head></head></html>", "Responses should not be equal");