#![cfg(feature = "std")]
#![cfg(feature = "assert")]
use tabled::{
assert::test_table,
settings::{themes::Theme, Style},
};
use crate::util::Matrix;
test_table!(
theme_0,
Matrix::new(3, 3).with(Theme::from_style(Style::modern())),
"┌───┬──────────┬──────────┬──────────┐"
"│ N │ column 0 │ column 1 │ column 2 │"
"├───┼──────────┼──────────┼──────────┤"
"│ 0 │ 0-0 │ 0-1 │ 0-2 │"
"├───┼──────────┼──────────┼──────────┤"
"│ 1 │ 1-0 │ 1-1 │ 1-2 │"
"├───┼──────────┼──────────┼──────────┤"
"│ 2 │ 2-0 │ 2-1 │ 2-2 │"
"└───┴──────────┴──────────┴──────────┘"
);
test_table!(
theme_1,
Matrix::new(3, 3).with(Theme::from_style(Style::markdown())),
"| N | column 0 | column 1 | column 2 |"
"|---|----------|----------|----------|"
"| 0 | 0-0 | 0-1 | 0-2 |"
"| 1 | 1-0 | 1-1 | 1-2 |"
"| 2 | 2-0 | 2-1 | 2-2 |"
);