Function xpct::have_suffix

source ·
pub fn have_suffix<'a, Actual>(
    suffix: impl Into<Cow<'a, str>>
) -> Matcher<'a, Actual, Actual>where
    Actual: Debug + AsRef<str> + 'a,
Expand description

Succeeds when the actual value has the expected suffix.

Examples

use xpct::{expect, have_suffix};

expect!("foobar").to(have_suffix("bar"));