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

startsWith

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

infix 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") toStartWith 'A'.toString()

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

Return
an Expect for the subject of this expectation.

Since
0.12.0

infix fun <T : Path> Expect<T>.startsWith(expected: Path): 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 Path) starts with the expected.

Return
an Expect for the subject of this expectation.

Since
0.12.0