mirror of
https://github.com/nushell/nushell.git
synced 2025-05-19 17:30:45 +02:00
24 lines
1021 B
Rust
24 lines
1021 B
Rust
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\
|
|
╰────────────┴───────────┴───────────┴───────────╯"
|
|
);
|
|
}
|