#table #pretty-table

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

#528 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

181 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