#pretty-table #assert

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

#591 in Testing

Download history 26/week @ 2024-12-18 414/week @ 2025-01-01 790/week @ 2025-01-08 511/week @ 2025-01-15 592/week @ 2025-01-22 1120/week @ 2025-01-29 314/week @ 2025-02-05 109/week @ 2025-02-12 99/week @ 2025-02-19 245/week @ 2025-02-26 368/week @ 2025-03-05 214/week @ 2025-03-12 363/week @ 2025-03-19 21/week @ 2025-03-26 70/week @ 2025-04-02

698 downloads per month
Used in 8 crates

MIT license

6KB
85 lines

Crate provides a convinient functions for work with tables.

It was developed as a sub-project of tabled.


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

Dependencies

~1.5MB
~25K SLoC