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

endsWith

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

Expects that the subject of this expectation (a CharSequence) ends with expected.

expect("ABC") toEndWith "BC"

fails {
    expect("ABC") toEndWith "X"
}

Return
an Expect for the subject of this expectation.

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

Expects that the subject of this expectation (a CharSequence) ends with expected.

expect("ABC") toEndWith 'C'.toString()

fails {
    expect("ABC") toEndWith 'X'.toString()
}

Return
an Expect for the subject of this expectation.

Since
0.12.0

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

Expects that the subject of this expectation (a Path) ends with the expected Path.

Return
an Expect for the subject of this expectation.

Since
0.12.0