Module lib::assert_matches::assert_matches

source ·
Expand description

Assert expression matches a case.

§Example

use assertables::*;

let a = 'a';
assert_matches!(a, 'a'..='z');

Note: this implementation of assert_matches is relatively basic.

  • If you want more capabilities, consider the crate assert_matches.

  • If you’re using Rust nightly, use the std lib macro assert_matches.

§Module macros