From 4228a7b0e9c433c42372bbf7f75933f7fab12d26 Mon Sep 17 00:00:00 2001 From: angie Date: Wed, 14 Aug 2024 09:04:44 -0400 Subject: [PATCH] Use `{:?}` to print different strings on tests --- slinky/tests/integration_test.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/slinky/tests/integration_test.rs b/slinky/tests/integration_test.rs index f719b46..04c2f38 100644 --- a/slinky/tests/integration_test.rs +++ b/slinky/tests/integration_test.rs @@ -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,