From c4dee64cfeede7363bcc503fe353a3749c02fd65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maxime=20=E2=80=9Cpep=E2=80=9D=20Buquet?= Date: Sat, 7 Jan 2023 17:22:08 +0100 Subject: [PATCH] TestComponent: Display 'actual' as green when stanza match MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maxime “pep” Buquet --- src/component/test.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/component/test.rs b/src/component/test.rs index 623a6e9..631adb0 100644 --- a/src/component/test.rs +++ b/src/component/test.rs @@ -210,7 +210,7 @@ impl Component { if expected == actual { return format!( - "\nexpected: `{}`\n \x1b[31mactual\x1b[0m: `{}`\n", + "\nexpected: `{}`\n \x1b[32mactual\x1b[0m: `{}`\n", hl_expected, hl_actual ); }