From 21b1a041e1e7f4a8dedf0dbf05f80bae277ffd35 Mon Sep 17 00:00:00 2001 From: "Peter Schilling (aider)" Date: Tue, 10 Sep 2024 21:14:04 -0700 Subject: [PATCH] aider: feat: Add color to print_all_env_vars_to_writer output --- src/tests.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/tests.rs b/src/tests.rs index 525c431..91e306f 100644 --- a/src/tests.rs +++ b/src/tests.rs @@ -208,12 +208,12 @@ fn test_print_all_env_vars() { let output_str = String::from_utf8(output).unwrap(); assert!( - output_str.contains("FOO=bar"), - "Output does not contain FOO=bar" + output_str.contains("FOO") && output_str.contains("bar"), + "Output does not contain FOO and bar" ); assert!( - output_str.contains("BAZ=qux"), - "Output does not contain BAZ=qux" + output_str.contains("BAZ") && output_str.contains("qux"), + "Output does not contain BAZ and qux" ); }