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

startsNotWith

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

Expects that the subject of this expectation (a CharSequence) does not start with expected.

expect("ABC").startsNotWith("X")

fails {
    expect("ABC").startsNotWith("AB")
}

Return
an Expect for the subject of this expectation.

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

Expects that the subject of this expectation (a CharSequence) does not start with expected.

expect("ABC").startsNotWith('X')

fails {
    expect("ABC").startsNotWith('A')
}

Return
an Expect for the subject of this expectation.

Since
0.9.0

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

Expects that the subject of this expectation (a Path) does not start with the expected.

Return
an Expect for the subject of this expectation.

Since
0.9.0