Skip to content

Commit 5075333

Browse files
committed
Check file size
1 parent e3aebbd commit 5075333

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/groovy/edu/ie3/util/io/FileIOUtilsTest.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ class FileIOUtilsTest extends Specification {
9090
then:
9191
noExceptionThrown()
9292
Files.exists(archiveFile)
93+
println(Files.size(archiveFile))
9394
Files.size(archiveFile) >= 1511 && Files.size(archiveFile) <= 1605 // Should be around 1558 bytes +/- 3 %
9495
}
9596

@@ -105,6 +106,7 @@ class FileIOUtilsTest extends Specification {
105106
then:
106107
noExceptionThrown()
107108
Files.exists(archiveFile)
109+
println(Files.size(archiveFile))
108110
Files.size(archiveFile) >= 1578 && Files.size(archiveFile) <= 1676 // Should be around 1627 bytes +/- 3 %
109111
}
110112

0 commit comments

Comments
 (0)