assertables/assert_is_empty/mod.rs
1//! Assert for method is_empty().
2//!
3//! These macros help with any item that implements self.is_empty().
4//!
5//! * [`assert_is_empty!(collection)`](macro@crate::assert_is_empty) ≈ collection.is_empty()
6//!
7//! * [`assert_not_empty!(collection)`](macro@crate::assert_not_empty) ≈ !collection.is_empty()
8//!
9//! # Example
10//!
11//! ```rust
12//! use assertables::*;
13//!
14//! let a = "";
15//! assert_is_empty!(a);
16//! ```
17
18pub mod assert_is_empty;
19pub mod assert_not_empty;