From 0718e7b49a629d9671941dff504d543b5a483008 Mon Sep 17 00:00:00 2001 From: Chris Laplante Date: Fri, 26 Apr 2024 16:17:50 -0400 Subject: [PATCH] tests: print whether colors are enabled to help diagnose spurious failure --- src/style.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/style.rs b/src/style.rs index a4e1cb33..c7a0658c 100644 --- a/src/style.rs +++ b/src/style.rs @@ -780,6 +780,7 @@ mod tests { use super::*; use crate::state::{AtomicPosition, ProgressState}; use std::sync::Mutex; + use console::colors_enabled; #[test] fn test_stateful_tracker() { @@ -925,6 +926,8 @@ mod tests { #[test] fn wide_element_style() { + println!("colors_enabled: {}", colors_enabled()); + const CHARS: &str = "=>-"; const WIDTH: u16 = 8; let pos = Arc::new(AtomicPosition::new());