nu-table 0.112.2

Nushell table printing
Documentation
mod common;

use common::{TestCase, create_row, create_table};

use nu_table::TableTheme as theme;

#[test]
fn test_expand() {
    let table = create_table(
        vec![create_row(4); 3],
        TestCase::new(50).theme(theme::rounded()).header().expand(),
    );

    assert_eq!(
        table.unwrap(),
        "╭────────────┬───────────┬───────────┬───────────╮\n\
         │     0      │     1     │     2     │     3     │\n\
         ├────────────┼───────────┼───────────┼───────────┤\n\
         │ 0          │ 1         │ 2         │ 3         │\n\
         │ 0          │ 1         │ 2         │ 3         │\n\
         ╰────────────┴───────────┴───────────┴───────────╯"
    );
}