diff --git a/README.md b/README.md index 05129d2bd..7c262ff0f 100644 --- a/README.md +++ b/README.md @@ -1489,6 +1489,16 @@ For example, `exists` will explain which entry was the first one missing: +```kotlin +expect(Paths.get("/usr/bin/noprogram")).exists() +``` +↑ [Example](https://github.com/robstoll/atrium/tree/master/misc/tools/readme-examples/src/main/kotlin/readme/examples/ReadmeSpec.kt#L353)[Output](#ex-path-exists) + +```text +expected that subject: /usr/bin/noprogram (sun.nio.fs.UnixPath <1234789>) +◆ to: exist + » the closest existing parent directory is /usr/bin +``` Atrium will give details about why something cannot be accessed, for example when checking whether a file is writable: