1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
#![cfg(feature = "std")]
use tabled::settings::{themes::Theme, Style};
use crate::matrix::Matrix;
use testing_table::test_table;
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 |"
);
|