mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
Added a failing test.
This commit is contained in:
parent
a947965495
commit
29e650bed7
16
src/test.rs
16
src/test.rs
@ -107,6 +107,22 @@ fn mini_empty() {
|
||||
assert_eq!(expected, format_table(input, &config));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn cube_empty() {
|
||||
let config = TableConfig {
|
||||
width: 4,
|
||||
..default_config()
|
||||
};
|
||||
let input = vec![&[1, 2, 3], &[4, 5, 6], &[7, 8, 9]];
|
||||
let expected = "┌──┬──┬──┐\n\
|
||||
│ │ │ │\n\
|
||||
│ │ │ │\n\
|
||||
│ │ │ │\n\
|
||||
└──┴──┴──┘\n";
|
||||
|
||||
assert_eq!(expected, format_table(input, &config));
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn mini_zero_char() {
|
||||
let config = TableConfig {
|
||||
|
Loading…
Reference in New Issue
Block a user