From 9f7d70018bf366e95d6c12dadba509ca507cfdfb Mon Sep 17 00:00:00 2001 From: "Shahar \"Dawn\" Or" Date: Sun, 14 Jan 2024 22:20:07 +0700 Subject: [PATCH] feat: no debug fmt in result mismatch output Co-authored-by: warren2k <846021+warren2k@users.noreply.github.com> --- crates/eelco/src/app/state.rs | 2 +- crates/eelco/tests/repl.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/eelco/src/app/state.rs b/crates/eelco/src/app/state.rs index f086272..f4219b5 100644 --- a/crates/eelco/src/app/state.rs +++ b/crates/eelco/src/app/state.rs @@ -140,7 +140,7 @@ impl State { if sanitized != expected_result.as_str() { anyhow::bail!(indoc::formatdoc! {" {id} - actual (sanitized): {sanitized:?} + actual (sanitized): {sanitized} expected : {expected_result}" }) } diff --git a/crates/eelco/tests/repl.rs b/crates/eelco/tests/repl.rs index 21d04cc..b80330b 100644 --- a/crates/eelco/tests/repl.rs +++ b/crates/eelco/tests/repl.rs @@ -36,7 +36,7 @@ fn result_mismatch() { eelco.assert().failure().stderr(formatdoc! {r#" Error: {file_path}:1 - actual (sanitized): "2" + actual (sanitized): 2 expected : 3 "#}); });