assert2 0.0.4

assert!(...) and check!(...) macros inspired by Catch2
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#![feature(proc_macro_hygiene)]

use assert2::check;

fn main() {
	let mut vec = Vec::new();
	vec.push(1);

	check!(let Some(_) = Some(1).filter(|_| false));

	{
		check!(&vec == &vec![]);
		eprintln!("This still executes!");
	}

	eprintln!("But this does not.");
}