#table #pretty-table #assert #test

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

#494 in Testing

Download history 348/week @ 2024-08-04 48/week @ 2024-08-11 19/week @ 2024-08-18 29/week @ 2024-08-25 20/week @ 2024-09-01 12/week @ 2024-09-08 51/week @ 2024-09-15 48/week @ 2024-09-22 63/week @ 2024-09-29 17/week @ 2024-10-06 129/week @ 2024-10-13 612/week @ 2024-10-20 20/week @ 2024-10-27 553/week @ 2024-11-03 1471/week @ 2024-11-10

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