Expand description
Macros for asserting of multiline strings String and &str.
The API is very similar to the API provided by the stdlib’s own assert_eq!
or assert_ne!. Left and right expression could be different types.
§Examples
Some examples are provided in the docs for each individual macro.
Macros§
- assert_
str_ eq - Asserts that multiline strings(
&strorString) are identical. It ignores different new line characters for different OSes:\nor\r\n. - assert_
str_ ne - Asserts that multiline strings(
&strorString) are not identical. It ignores different new line characters for different OSes:\nor\r\n. - assert_
str_ trim_ all_ eq - Asserts that multiline strings(
&strorString) are identical when every line is trimmed and new lines are removed. - assert_
str_ trim_ all_ ne - Asserts that multiline strings(
&strorString) are identical when every line is trimmed and new lines are removed. - assert_
str_ trim_ eq - Asserts that multiline strings(
&strorString) are identical when every line is trimmed and empty lines are removed. It ignores different new line characters for different OSes:\nor\r\n. - assert_
str_ trim_ ne - Asserts that multiline strings(
&strorString) are identical. It ignores different new line characters for different OSes:\nor\r\n