#table #assert #pretty-table

dev testing_table

An easy to use library for pretty print tables of Rust structs and enums

2 releases

0.1.1 Aug 5, 2024
0.1.0 Aug 5, 2024

#570 in Testing

Download history 343/week @ 2024-08-03 49/week @ 2024-08-10 22/week @ 2024-08-17 20/week @ 2024-08-24 29/week @ 2024-08-31 11/week @ 2024-09-07 48/week @ 2024-09-14 43/week @ 2024-09-21

132 downloads per month
Used in 7 crates

MIT license

6KB
78 lines

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 |"
    "+---+---+---+"
);

lib.rs:

Crate provides a convinient functions for work with tables.

It was developed as a sub-project of tabled.

Dependencies

~2MB
~26K SLoC