macro_rules! assert_str_eq {
($left:expr, $right:expr) => { ... };
($left:expr, $right:expr,) => { ... };
($left:expr, $right:expr, $($arg:tt)+) => { ... };
}Expand description
Asserts that multiline strings(&str or String) are identical. It
ignores different new line characters for different OSes: \n or \r\n.
ยงExamples
Test on equality of two strings generated on different OSes:
use assert_str::assert_str_eq;
assert_str_eq!("This string\nEnd", "This string\r\nEnd", "Responces should be equal");