Expand description
Assert for method is_empty().
These macros help with any item that implements self.is_empty().
-
assert_is_empty!(collection)≈ collection.is_empty() -
assert_not_empty!(collection)≈ !collection.is_empty()
§Example
use assertables::*;
let a = "";
assert_is_empty!(a);Modules§
- Assert an expression (such as a string or array) is empty.
- Assert an expression (such as a string or array) is not empty.