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