[−][src]Crate assert2
assert!(...)
and check!(...)
macros inspired by Catch2.
This crate is currently a work in progress.
It relies on a nightly compiler with the proc_macro_hygiene
, proc_macro_span
and specialization
features.
As a user of the crate, you also need to enable the proc_macro_hygiene
feature.
Example
#![feature(proc_macro_hygiene)] use assert2::check; let mut vec = Vec::new(); vec.push(12); check!(vec.len() == 2); check!(&vec == &vec![10]);
Macros
assert | Assert that an expression evaluates to true. |
check | Check if an expression evaluates to true. |