infix fun <T : CharSequence> Expect<T>.notToEndWith(expected: CharSequence): Expect<T>
(source)
Expects that the subject of this
expectation (a CharSequence) does not end with expected.
expect("ABC") notToEndWith "X"
fails {
expect("ABC") notToEndWith "BC"
}
Return
an Expect for the subject of this
expectation.
Since
0.17.0
infix fun <T : Path> Expect<T>.notToEndWith(expected: Path): Expect<T>
(source)
Expects that the subject of this
expectation (a Path) does not end with the expected Path;
val dir = tempDir.newDirectory("test_dir")
expect(dir) notToEndWith Paths.get("non_existing_dir")
fails {
expect(dir) notToEndWith Paths.get("test_dir")
}
expected
- The Path provided to the assertion
Return
an Expect for the subject of this
expectation.
Since
0.17.0