assertables

Module assert_ends_with

source
Expand description

Assert an expression (such as a string) ends with an expression (such as a string).

Pseudocode:
a.ends_with(b)

§Example

use assertables::*;
let a = "alfa";
let b = "fa";
assert_ends_with!(a, b);

§Module macros