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

startsNotWith

infix 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
This assertion container to support a fluent API.

infix 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
This assertion container to support a fluent API.

Since
0.12.0

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