#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

#274 in Testing

Download history 212/week @ 2024-10-23 486/week @ 2024-10-30 213/week @ 2024-11-06 1492/week @ 2024-11-13 726/week @ 2024-11-20 51/week @ 2024-11-27 66/week @ 2024-12-04 608/week @ 2024-12-11 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

3,164 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