Skip to content

Commit

Permalink
fix: add tests for PathOption
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Sep 6, 2022
1 parent bb97af4 commit d6308e1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package app.revanced.patcher.patch
import app.revanced.patcher.usage.bytecode.ExampleBytecodePatch
import org.junit.jupiter.api.Test
import org.junit.jupiter.api.assertThrows
import java.io.File
import kotlin.test.assertNotEquals

internal class PatchOptionsTest {
Expand Down Expand Up @@ -30,6 +31,9 @@ internal class PatchOptionsTest {
println(choice)
}
}
is PatchOption.PathOption -> {
option.value = File("test.txt").toPath()
}
}
}
val option = options["key1"]
Expand Down

0 comments on commit d6308e1

Please sign in to comment.