From 62944f80345dcdf14556f6c39b68294ebf01a368 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..9211cadb 100644 --- a/src/style.rs +++ b/src/style.rs @@ -779,6 +779,7 @@ mod tests { use super::*; use crate::state::{AtomicPosition, ProgressState}; + use console::colors_enabled; use std::sync::Mutex; #[test] @@ -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());