#pretty-table #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

#743 in Testing

Download history 46/week @ 2024-12-01 202/week @ 2024-12-08 467/week @ 2024-12-15 1/week @ 2024-12-22 406/week @ 2024-12-29 98/week @ 2025-01-05 712/week @ 2025-01-12 1077/week @ 2025-01-19 455/week @ 2025-01-26 984/week @ 2025-02-02 39/week @ 2025-02-09 103/week @ 2025-02-16 290/week @ 2025-02-23 366/week @ 2025-03-02 179/week @ 2025-03-09 307/week @ 2025-03-16

1,151 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
~25K SLoC