#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

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

#276 in Testing

Download history 335/week @ 2024-08-02 50/week @ 2024-08-09 28/week @ 2024-08-16 20/week @ 2024-08-23 28/week @ 2024-08-30 12/week @ 2024-09-06 47/week @ 2024-09-13 51/week @ 2024-09-20 54/week @ 2024-09-27 28/week @ 2024-10-04 21/week @ 2024-10-11 532/week @ 2024-10-18 202/week @ 2024-10-25 496/week @ 2024-11-01 1399/week @ 2024-11-08 697/week @ 2024-11-15

2,800 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

~2MB
~26K SLoC