Expand description
the testing macro tools.
This checks that strings are equal. You will see different characters if that is different.
§Features
- assert_text_eq!(txt1, txt2)
- assert_text_contains!(txt1, txt2)
- assert_text_starts_with!(txt1, txt2)
- assert_text_ends_with!(txt1, txt2)
- assert_text_match!(txt1, regex_text2)
- minimum support rustc 1.65.0 (897e37553 2022-11-02)
Macros§
- assert_
text_ contains - Asserts that the first text contains the given second text.
- assert_
text_ ends_ with - Asserts that the first text expression ends with the second text expression.
- assert_
text_ eq - Asserts that two text expressions are equal.
- assert_
text_ match - Asserts that the first text expression matches the given regular expression.
- assert_
text_ starts_ with - Asserts that the first text expression starts with the second text expression.
Functions§
- print_
diff_ github_ style - Prints a GitHub-style diff between two text slices to stdout.