2 个版本
0.0.2 | 2024年4月19日 |
---|---|
0.0.0 | 2019年5月11日 |
#257 在 测试 中
5KB
断言式
断言集合。
用法
要使用 assertive
,首先将以下内容添加到您的 Cargo.toml
[dependencies]
assertive = "0.1.0"
接下来,将以下内容添加到您的 crate
use assertive::*;
fn main() {
let value = assert_ok!(Ok::<_, ()>("hello"));
assert_eq!(value, "hello");
}
许可证
本项目采用 MIT 许可证。
贡献
除非您明确声明,否则您提交给 assertive
的任何有意贡献都将按照 MIT 许可证许可,不附加任何额外条款或条件。
lib.rs
:
断言集合。