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

endsNotWith

infix fun <T : CharSequence> Expect<T>.endsNotWith(expected: CharSequence): Expect<T> (source)
Deprecated: Use notToEndWith; will be removed with 1.0.0 at the latest

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

expect("ABC") notToEndWith "X"

fails {
    expect("ABC") notToEndWith "BC"
}

Return
an Expect for the subject of this expectation.

infix fun <T : CharSequence> Expect<T>.endsNotWith(expected: Char): Expect<T> (source)
Deprecated: Use notToEndWith which expects a String; will be removed with 1.0.0 at the latest

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

expect("ABC") notToEndWith 'X'.toString()

fails {
    expect("ABC") notToEndWith 'C'.toString()
}

Return
an Expect for the subject of this expectation.

Since
0.12.0

infix fun <T : Path> Expect<T>.endsNotWith(expected: Path): Expect<T> (source)
Deprecated: Use notToEndWith; will be removed with 1.0.0 at the latest

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.12.0