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").endsWith("BC")
fails {
expect("ABC").endsWith("X")
}
Return
an Expect for the subject of this
expectation.
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").endsWith('C')
fails {
expect("ABC").endsWith('X')
}
Return
an Expect for the subject of this
expectation.
Since
0.9.0
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.9.0