From b1d92160a985fc619828db27b75ec776c1e2fe99 Mon Sep 17 00:00:00 2001 From: Esoteric Enderman Date: Tue, 29 Oct 2024 18:32:56 +0000 Subject: [PATCH] Correct the tests --- .../foundation/esoteric/utility/file/FileUtilityTest.kt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lib/src/test/kotlin/foundation/esoteric/utility/file/FileUtilityTest.kt b/lib/src/test/kotlin/foundation/esoteric/utility/file/FileUtilityTest.kt index 70b47bb..a230a56 100644 --- a/lib/src/test/kotlin/foundation/esoteric/utility/file/FileUtilityTest.kt +++ b/lib/src/test/kotlin/foundation/esoteric/utility/file/FileUtilityTest.kt @@ -44,6 +44,15 @@ class FileUtilityTest { @Test fun recursiveEmptinessThrowsWhenNotDirectory() { val file = File("run/file.txt") + file.createNewFile() + + assertThrows { + FileUtility.isRecursivelyEmpty(file) + } + } + + @Test fun recursiveEmptinessThrowsWhenNonExistent() { + val file = File("run/file.txt") assertThrows { FileUtility.isRecursivelyEmpty(file)