Skip to content

Commit

Permalink
tests: print whether colors are enabled to help diagnose spurious fai…
Browse files Browse the repository at this point in the history
…lure
  • Loading branch information
chris-laplante committed Apr 26, 2024
1 parent f533fbe commit 0718e7b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/style.rs
Expand Up @@ -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() {
Expand Down Expand Up @@ -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());
Expand Down

0 comments on commit 0718e7b

Please sign in to comment.