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 29, 2024
1 parent f533fbe commit 6c4637b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/style.rs
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,7 @@ mod tests {

use super::*;
use crate::state::{AtomicPosition, ProgressState};
use console::colors_enabled;
use std::sync::Mutex;

#[test]
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 6c4637b

Please sign in to comment.