[−][src]Macro assert_str::assert_str_ne
Asserts that multiline strings(&str
or String
) are not identical. It
ignores different new line characters for different OSes: \n
or \r\n
.
Examples
Test on inequality of two strings generated on different OSes:
use assert_str::assert_str_ne; assert_str_ne!("This string\nEnd", "This string\r\nFinalEnd", "Responces should not be equal");