| Crates.io | testing_table |
| lib.rs | testing_table |
| version | 0.3.0 |
| created_at | 2024-08-05 20:47:04.47863+00 |
| updated_at | 2025-04-24 20:50:49.558936+00 |
| description | An easy to use library for pretty print tables of Rust `struct`s and `enum`s. |
| homepage | https://github.com/zhiburt/tabled |
| repository | https://github.com/zhiburt/tabled |
| max_upload_size | |
| id | 1326506 |
| size | 9,972 |
testing_tableA library which provides handy macros for table testing.
Includes
test_table!static_table!assert_table!assert_width!use testing_table::{test_table, assert_table, static_table};
test_table!(
test_tabled,
tabled::Table::new([[1, 2, 3]]),
"+---+---+---+"
"| 0 | 1 | 2 |"
"+---+---+---+"
"| 1 | 2 | 3 |"
"+---+---+---+"
);
assert_table!(
tabled::Table::new([[1, 2, 3]]),
"+---+---+---+"
"| 0 | 1 | 2 |"
"+---+---+---+"
"| 1 | 2 | 3 |"
"+---+---+---+"
);
static_table!(
"+---+---+---+"
"| 0 | 1 | 2 |"
"+---+---+---+"
"| 1 | 2 | 3 |"
"+---+---+---+"
);