Skip to content

Commit

Permalink
Correct the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
esotericenderman committed Oct 29, 2024
1 parent 6481b31 commit b1d9216
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,15 @@ class FileUtilityTest {

@Test fun recursiveEmptinessThrowsWhenNotDirectory() {
val file = File("run/file.txt")
file.createNewFile()

assertThrows<IllegalArgumentException> {
FileUtility.isRecursivelyEmpty(file)
}
}

@Test fun recursiveEmptinessThrowsWhenNonExistent() {
val file = File("run/file.txt")

assertThrows<IllegalArgumentException> {
FileUtility.isRecursivelyEmpty(file)
Expand Down

0 comments on commit b1d9216

Please sign in to comment.