#table #pretty-table #assert #test

dev testing_table

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

3 unstable releases

0.2.0 Nov 22, 2024
0.1.1 Aug 5, 2024
0.1.0 Aug 5, 2024

#283 in Testing

Download history 39/week @ 2024-08-26 7/week @ 2024-09-02 13/week @ 2024-09-09 53/week @ 2024-09-16 52/week @ 2024-09-23 59/week @ 2024-09-30 14/week @ 2024-10-07 132/week @ 2024-10-14 614/week @ 2024-10-21 16/week @ 2024-10-28 554/week @ 2024-11-04 1614/week @ 2024-11-11 711/week @ 2024-11-18 65/week @ 2024-11-25 49/week @ 2024-12-02 427/week @ 2024-12-09

1,393 downloads per month
Used in 8 crates

MIT license

6KB
85 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

~1.5MB
~26K SLoC