Platform (jvm, js, android): jvm
Extension (none, kotlin 1.3, jdk8): jdk8
expect(Paths.get("folder")).resolve("file.txt").exists()
expect(Paths.get("folder")).resolve("file.txt") {
isReadable()
isWriteable()
}
//instead of
expect(Paths.get("folder")).feature { f<String, Path>(it::resolve, "file.txt") }.exists()
expect(Paths.get("folder")).feature({ f<String, Path>(it::resolve, "file.txt") }) {
isReadable()
isWriteable()
}
Following the things you need to do:
lib
ExpectImpl.feature.f1domain
resolve (see existing functions as a guideline)api
assertionCreator-lambda and returns ExpectT: Path (see listAssertions.kt -> get as a guideline)@since 0.10.0 to KDOCI'll work on this if you would like to take this issue over.Hi, I like to work on this task
@Keerthi4308 do you need help? I am un-assigning you as I did not get a reaction. Comment here if you still work on it or would like to work on it, I'll re-assign it to you then.
Hi @robstoll I'll work on this
@aljacinto do you need any help?
Sorry @robstoll, got busy. Can you reassign to someone else?
I will work on this!
@slalu I updated the description, I am going to add a bit more description for the infix API later on.
implemented with 9cb8c5de