Skip to main content

assert_ends_with

Function assert_ends_with 

Source
pub fn assert_ends_with(string: impl AsRef<str>, suffix: impl AsRef<str>)
Expand description

Assert that a string ends with a suffix. Accepts both String and &str via AsRef.