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

startsWith

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

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

expect("ABC").startsWith("AB")

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

Return
an Expect for the subject of this expectation.

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

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

expect("ABC").startsWith('A')

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

Return
an Expect for the subject of this expectation.

Since
0.9.0

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

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

Return
an Expect for the subject of this expectation.

Since
0.9.0