macro_rules! assert_wildcard {
($expression:expr, $wildcard:expr) => { ... };
}Expand description
Asserts that the string representation of an expression matches a given wildcard pattern.
This macro is useful when you want to verify that an expression’s output conforms to a specific wildcard pattern, rather than an exact string match.
§Example
use versatiles_core::assert_wildcard;
let value = "hello_world";
assert_wildcard!(value, "hello_*");