Module assert_not_starts_with

Module assert_not_starts_with 

Source
Expand description

Assert an expression (such as a string) does not start with an expression (such as a string).

Pseudocode:
¬ a.starts_with(b)

§Example

use assertables::*;

// String starts with substring?
let sequence: &str = "alfa";
let subsequence: &str = "z";
assert_not_starts_with!(sequence, subsequence);

// Vector starts with element?
let sequence = vec![1, 2, 3];
let subsequence = [3];
assert_not_starts_with!(sequence, subsequence);

§Module macros