[−][src]Macro assert_str::assert_str_trim_eq
Asserts that multiline strings(&str
or String
) are 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 equality of two trimmed strings generated on different OSes:
use assert_str::assert_str_trim_eq; assert_str_trim_eq!("<html>\t \n\t<head> \n\t</head></html>", "<html>\r\n<head>\r\n</head></html>", "Responces should be equal");