mirror of
https://gitlab.com/arnekeller/ascii-table.git
synced 2024-12-04 21:49:08 +00:00
Fix tests
This commit is contained in:
parent
7fffb5d93b
commit
37f6f7e8fb
@ -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\
|
||||||
|
Loading…
Reference in New Issue
Block a user