diff options
Diffstat (limited to 'src/style.rs')
-rw-r--r-- | src/style.rs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs index 9de37cc9..fa53702c 100644 --- a/src/style.rs +++ b/src/style.rs @@ -319,6 +319,24 @@ mod tests { false ) ); + assert_eq!( + parse_ansi_term_style("bold red underline green blink", None, None, false), + ( + ansi_term::Style { + foreground: Some(ansi_term::Color::Fixed( + ansi_color_name_to_number("red").unwrap() + )), + background: Some(ansi_term::Color::Fixed( + ansi_color_name_to_number("green").unwrap() + )), + is_blink: true, + is_bold: true, + is_underline: true, + ..ansi_term::Style::new() + }, + false + ) + ); } #[test] |