pub fn diff_text(expected: &str, actual: &str) -> StringExpand description
Compute a simple line-by-line diff between two text strings.
Returns a human-readable string where:
- Lines prefixed with
are identical in both. - Lines prefixed with
-appear only inexpected. - Lines prefixed with
+appear only inactual.
Returns an empty string when the inputs are identical.