Skip to content

Commit

Permalink
Correct the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
EsotericEnderman committed Nov 3, 2024
1 parent c4e8501 commit 830a555
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ class FileUtilityTest {
file.createNewFile()
file.writeText("Some sample text to test the SHA-1 file hash function.")

assertEquals(file.getSha1Hash(), "d954f0153df726daae33c93f6928fadbfb15fa92")
assertEquals("d954f0153df726daae33c93f6928fadbfb15fa92", file.getSha1Hash())
}

@Test fun sha1ZipFileHashWorks() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class ResourceUtilityTest {
@Test fun resourcesListIsCorrect() {
val resourcePaths = Path("resource").getResourceFilePaths()

assertEquals(resourcePaths, setOf(Path.of("resource/ResourceUtilityTest/Test Folder/Test File.txt"), Path.of("resource/ResourceUtilityTest/Test File.txt")))
assertEquals(setOf(Path.of("resource/ResourceUtilityTest/Test Folder/Test File.txt"), Path.of("resource/ResourceUtilityTest/Test File.txt")), resourcePaths)
}

@Test fun getResourcePathsThrowsCorrectly() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ class StringUtilityTest {
@Test fun sha1HashWorks() {
val string = "A string with a few characters in it."

assertEquals(string.getSha1Hash(), "0e7f418083ad73f5006b5ffa1e7ddce617936a64")
assertEquals("0e7f418083ad73f5006b5ffa1e7ddce617936a64", string.getSha1Hash())
}
}

0 comments on commit 830a555

Please sign in to comment.