Skip to content

Commit 62944f8

Browse files
tests: print whether colors are enabled to help diagnose spurious failure
1 parent f533fbe commit 62944f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/style.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -779,6 +779,7 @@ mod tests {
779779

780780
use super::*;
781781
use crate::state::{AtomicPosition, ProgressState};
782+
use console::colors_enabled;
782783
use std::sync::Mutex;
783784

784785
#[test]
@@ -925,6 +926,8 @@ mod tests {
925926

926927
#[test]
927928
fn wide_element_style() {
929+
println!("colors_enabled: {}", colors_enabled());
930+
928931
const CHARS: &str = "=>-";
929932
const WIDTH: u16 = 8;
930933
let pos = Arc::new(AtomicPosition::new());

0 commit comments

Comments
 (0)