Crates.io | testing_table |
lib.rs | testing_table |
version | 0.2.0 |
source | src |
created_at | 2024-08-05 20:47:04.47863 |
updated_at | 2024-11-22 20:46:37.276025 |
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 | 6,890 |
testing_table
A library which provides handy macros for table testing.
Includes
test_table!
static_table!
assert_table!
assert_width!
An example.
test_table!(
test_tabled,
tabled::Table::new([[1, 2, 3]]),
"+---+---+---+"
"| 0 | 1 | 2 |"
"+---+---+---+"
"| 1 | 2 | 3 |"
"+---+---+---+"
);