Macro assert_width
Source macro_rules! assert_width {
($table:expr, $expected:expr) => { ... };
}
Expand description
Assert table width.
§Example
use tabled::Table;
use tabled::assert::assert_width;
let data = [[1, 2, 3], [4, 5, 6]];
let table = Table::new(data);
assert_width!(table, 13);
Assert a given table width.
§Example
assert_width!(Table::new([[1, 2, 3], [4, 5, 6]]), 10);