We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0cee16b + 82e37aa commit 89879ebCopy full SHA for 89879eb
1 file changed
crates/trycmd/src/runner.rs
@@ -473,11 +473,12 @@ impl Case {
473
}
474
475
if let Some(expected_content) = expected_content {
476
+ let expected_content = FilterNewlines.filter(expected_content.clone());
477
stream.content = NormalizeToExpected::new()
478
.redact_with(substitutions)
- .normalize(stream.content, expected_content);
479
+ .normalize(stream.content, &expected_content);
480
- if stream.content != *expected_content {
481
+ if stream.content != expected_content {
482
stream.status = StreamStatus::Expected(expected_content.clone());
483
return Some(stream);
484
0 commit comments