assert2 0.0.2

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

use assert2::check;

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

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

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