willowtreeapps / assertk

assertions for kotlin inspired by assertj
MIT License
757 stars 84 forks source link

Add Path `doesNotExist` assertion #542

Closed jisungbin closed 1 month ago

jisungbin commented 1 month ago

Assert<Path>.exists() exists, but its negation, Assert<Path>.doesNotExist(), does not. Add doesNotExist() to Path for clean negation assertions.

jisungbin commented 1 month ago

Looks good! fyi macos build is failing because the resource class needs to be updated (see evant/kotlin-inject@6d89691). I'll get to it eventually but feel free to do it here in a separate commit if you want.

I fixed the CI with the commit you referenced, and now the macos build passes! 🥳