Module lib::assert_ends_with::assert_not_ends_with
source · Expand description
Assert an expression (such as a string) does not end with an expression (such as a string).
Pseudocode:
¬ a.ends_with(b)
§Example
use assertables::*;
// String ends with substring?
let whole: &str = "alfa";
let part: &str = "al";
assert_not_ends_with!(sequence, x);
// Vector ends with element?
let whole = vec![1, 2, 3];
let part = [1];
assert_not_ends_with!(sequence, x);