doc / ch.tutteli.atrium.api.fluent.en_GB / endsNotWith

endsNotWith

fun <T : CharSequence> Expect<T>.endsNotWith(expected: CharSequence): Expect<T> (source)

Expects that the subject of this expectation (a CharSequence) does not end with expected.

expect("ABC").endsNotWith("X")

fails {
    expect("ABC").endsNotWith("BC")
}

Return
an Expect for the subject of this expectation.

fun <T : CharSequence> Expect<T>.endsNotWith(expected: Char): Expect<T> (source)

Expects that the subject of this expectation (a CharSequence) does not end with expected.

expect("ABC").endsNotWith('X')

fails {
    expect("ABC").endsNotWith('C')
}

Return
an Expect for the subject of this expectation.

Since
0.9.0

fun <T : Path> Expect<T>.endsNotWith(expected: Path): Expect<T> (source)

Expects that the subject of this expectation (a Path) does not end with the expected Path;

Parameters

expected - The Path provided to the assertion

Return
an Expect for the subject of this expectation.

Since
0.9.0