Fix tests

This commit is contained in:
Arne Keller 2021-03-28 14:29:18 +02:00
parent 7fffb5d93b
commit 37f6f7e8fb

View File

@ -19,6 +19,7 @@ fn cube_config() -> AsciiTable {
fn backwards_compatible() { fn backwards_compatible() {
AsciiTable { AsciiTable {
max_width: 0, max_width: 0,
draw_lines: true,
columns: BTreeMap::new() columns: BTreeMap::new()
}; };
Column { Column {
@ -461,7 +462,7 @@ fn align_right() {
let input = vec![&[1], &[23], &[456]]; let input = vec![&[1], &[23], &[456]];
let expected = "┌─────┐\n\ let expected = "┌─────┐\n\
a \n\ a \n\
\n\ \n\
1 \n\ 1 \n\
23 \n\ 23 \n\
@ -478,7 +479,7 @@ fn align_center() {
let input = vec![&[1], &[23], &[456], &[7890], &[12345]]; let input = vec![&[1], &[23], &[456], &[7890], &[12345]];
let expected = "┌───────┐\n\ let expected = "┌───────┐\n\
a \n\ a \n\
\n\ \n\
1 \n\ 1 \n\
23 \n\ 23 \n\