Skip to content

Commit 0718e7b

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

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
@@ -780,6 +780,7 @@ mod tests {
780780
use super::*;
781781
use crate::state::{AtomicPosition, ProgressState};
782782
use std::sync::Mutex;
783+
use console::colors_enabled;
783784

784785
#[test]
785786
fn test_stateful_tracker() {
@@ -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)