Skip to content

Commit

Permalink
test(stream): Add wincon reproduction case
Browse files Browse the repository at this point in the history
  • Loading branch information
epage committed Dec 8, 2023
1 parent 277b5ee commit 369a57b
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions crates/anstream/src/adapter/wincon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,17 @@ mod test {
verify(&input, expected);
}

#[test]
fn ansi256_colors() {
// termcolor only supports "brights" via these
let input = format!(
"Hello {}!",
"world".color(owo_colors::XtermColors::UserBrightYellow)
);
let expected = vec![(anstyle::Style::default(), "Hello world!")];
verify(&input, expected);
}

proptest! {
#[test]
#[cfg_attr(miri, ignore)] // See https://github.com/AltSysrq/proptest/issues/253
Expand Down

0 comments on commit 369a57b

Please sign in to comment.