-
-
Notifications
You must be signed in to change notification settings - Fork 211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Path.toBeAnEmptyDirectory #766
Comments
I'll work on this |
@Samuellucas97 I have updated the description. Let me know in case you need help |
@Samuellucas97 let us know in case you need help |
I'd like to try this, toBeEmptyDirectory simply asserts whether the path points to an empty directory, correct? |
@mai2412 exactly. Use the existing functionality for toBeADirectory so that the reporting in error cases is already advanced |
Do you mean isDirectory? I can't find toBeADirectory |
@mai2412 yes, isDirectory in DefaultPathAssertions. Sorry |
Platform (all, jvm, js): all
Extension (none, kotlin 1.3): none
Code related feature
Following the things you need to do:
logic
toBeEmptyDirectory
(see other functions as a guideline)iterator.hasNext()
api-fluent
toBeAnEmptyDirectory
in a new file called pathExpectations.kt (see for instance isDirectory in pashAssertions.kt as a guideline)@since 0.16.0
(adapt to current milestone) to KDOCapi-infix
toBe
which expectsanEmptyDirectory
in a new file called pathExpectations.kt (seetoBe aDirectory
in pathAssertions.kt as a guideline)@since 0.16.0
(adapt to current milestone) to KDOCYour first contribution?
I'll work on this
if you would like to take this issue over.This way we get the chance to revise the description in case things have changed in the meantime, we might give you additional hints and we can assign the task to you, so that others do not start as well.
(Invite yourself in case you do not have an account yet).
The text was updated successfully, but these errors were encountered: