mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
save game
This commit is contained in:
parent
0e5bf71313
commit
c06a4aa793
@ -525,8 +525,9 @@ fn mixed_types() {
|
|||||||
#[test]
|
#[test]
|
||||||
fn color_codes() {
|
fn color_codes() {
|
||||||
let config = AsciiTable::default();
|
let config = AsciiTable::default();
|
||||||
let text = "Hello".color(Color::Blue).bg_color(Color::Yellow).bold();
|
let input = vec![vec![
|
||||||
let input = vec![vec![text]];
|
"Hello".color(Color::Blue).bg_color(Color::Yellow).bold()
|
||||||
|
]];
|
||||||
let expected = "┌───────┐\n\
|
let expected = "┌───────┐\n\
|
||||||
│ \u{1b}[38;5;4m\u{1b}[48;5;3;1mHello\u{1b}[0m │\n\
|
│ \u{1b}[38;5;4m\u{1b}[48;5;3;1mHello\u{1b}[0m │\n\
|
||||||
└───────┘\n";
|
└───────┘\n";
|
||||||
|
Loading…
Reference in New Issue
Block a user