Added a failing test.

This commit is contained in:
Gerrit Viljoen 2019-05-14 10:40:35 +02:00
parent a947965495
commit 29e650bed7

View File

@ -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 {