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
an Expect for the subject of this
expectation.
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") 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)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