#table #pretty-table #assert #test

dev testing_table

一个易于使用的库,用于打印 Rust 的结构体和枚举的格式化表格。

2 个版本

0.1.1 2024 年 8 月 5 日
0.1.0 2024 年 8 月 5 日

#380 in 测试

Download history 357/week @ 2024-08-05 44/week @ 2024-08-12

每月 401 次下载
用于 7 crates

MIT 许可协议

6KB
78

testing_table

一个提供方便宏的表格测试库。

包含

  • test_table!
  • static_table!
  • assert_table!
  • assert_width!

一个示例。

test_table!(
    test_tabled,
    tabled::Table::new([[1, 2, 3]]),
    "+---+---+---+"
    "| 0 | 1 | 2 |"
    "+---+---+---+"
    "| 1 | 2 | 3 |"
    "+---+---+---+"
);

lib.rs:

Crate 提供了处理表格的方便函数。

它是作为 tabled 的子项目开发的。

依赖项

~455–660KB