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

endsWith

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

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

expect("ABC") endsWith "BC"

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

Return
This assertion container to support a fluent API.

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

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

expect("ABC") endsWith 'C'

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

Return
This assertion container to support a fluent API.

Since
0.12.0

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

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