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

endsWith

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").endsWith("BC")

fails {
    expect("ABC").endsWith("X")
}

Return
an Expect for the subject of this expectation.

fun <T : CharSequence> Expect<T>.endsWith(expected: Char): Expect<T> (source)
Deprecated: Use toEndWith with 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").endsWith('C')

fails {
    expect("ABC").endsWith('X')
}

Return
an Expect for the subject of this expectation.

Since
0.9.0

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