infix fun <T : CharSequence> Expect<T>.endsWith(expected: CharSequence): Expect<T>
(source)Expects that the subject of this
expectation (a CharSequence) ends with expected.
expect("ABC") toEndWith "BC"
fails {
expect("ABC") toEndWith "X"
}
Return
an Expect for the subject of this
expectation.
infix fun <T : CharSequence> Expect<T>.endsWith(expected: Char): Expect<T>
(source)Expects that the subject of this
expectation (a CharSequence) ends with expected.
expect("ABC") toEndWith 'C'.toString()
fails {
expect("ABC") toEndWith 'X'.toString()
}
Return
an Expect for the subject of this
expectation.
Since
0.12.0
infix fun <T : Path> Expect<T>.endsWith(expected: Path): Expect<T>
(source)Expects that the subject of this
expectation (a Path) ends with the expected Path.
Return
an Expect for the subject of this
expectation.
Since
0.12.0