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

startsWith

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

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)

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)

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