[−][src]Macro assert_str::assert_str_eq
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");