#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

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

#306 in Testing

Download history 55/week @ 2024-09-24 53/week @ 2024-10-01 21/week @ 2024-10-08 522/week @ 2024-10-15 217/week @ 2024-10-22 416/week @ 2024-10-29 155/week @ 2024-11-05 1616/week @ 2024-11-12 724/week @ 2024-11-19 54/week @ 2024-11-26 47/week @ 2024-12-03 630/week @ 2024-12-10 29/week @ 2024-12-17 410/week @ 2024-12-31 149/week @ 2025-01-07

796 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
~26K SLoC