Skip to content

Commit

Permalink
Use {:?} to print different strings on tests
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Aug 14, 2024
1 parent 0331902 commit 4228a7b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions slinky/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,19 +25,19 @@ fn compare_multiline_strings(left: &str, right: &str) {
(Some(l), Some(r)) => {
if l != r {
println!(" Different lines:");
println!(" left: {}", l);
println!(" right: {}", r);
println!(" left: {:?}", l);
println!(" right: {:?}", r);
println!();
}
}
(Some(l), None) => {
println!(" Only one line:");
println!(" left: {}", l);
println!(" left: {:?}", l);
println!();
}
(None, Some(r)) => {
println!(" Only one line:");
println!(" right: {}", r);
println!(" right: {:?}", r);
println!();
}
(None, None) => break,
Expand Down

0 comments on commit 4228a7b

Please sign in to comment.