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