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
36113ce9f7
commit
481ede8a6f
13
src/test.rs
13
src/test.rs
@ -587,6 +587,19 @@ fn color_codes_n5() {
|
|||||||
assert_eq!(expected, config.format(input));
|
assert_eq!(expected, config.format(input));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn color_codes_missing_m() {
|
||||||
|
let config = AsciiTable::default();
|
||||||
|
let input = vec![vec![
|
||||||
|
"\u{1b}[0Hello\u{1b}[0"
|
||||||
|
]];
|
||||||
|
let expected = "┌───────┐\n\
|
||||||
|
│ \u{1b}[0Hello\u{1b}[0 │\n\
|
||||||
|
└───────┘\n";
|
||||||
|
|
||||||
|
assert_eq!(expected, config.format(input));
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn color_codes() {
|
fn color_codes() {
|
||||||
let config = AsciiTable::default();
|
let config = AsciiTable::default();
|
||||||
|
Loading…
Reference in New Issue
Block a user