We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 104ab6c commit b088539Copy full SHA for b088539
tests/testsuite/support/mod.rs
@@ -1188,6 +1188,9 @@ enum MatchKind {
1188
/// See `substitute_macros` for a complete list of macros.
1189
pub fn lines_match(expected: &str, actual: &str) -> bool {
1190
// Let's not deal with / vs \ (windows...)
1191
+ // First replace backslash-escaped backslashes with forward slashes
1192
+ // which can occur in, for example, JSON output
1193
+ let expected = expected.replace("\\\\", "/");
1194
let expected = expected.replace("\\", "/");
1195
let mut actual: &str = &actual.replace("\\", "/");
1196
let expected = substitute_macros(&expected);
0 commit comments