24 lines
1021 B
Rust
Raw Normal View History

2025-06-27 02:33:44 +01:00
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\
"
);
}