mirror of
https://github.com/ReVanced/revanced-patcher.git
synced 2024-11-10 09:08:04 +01:00
fix: add tests for PathOption
This commit is contained in:
parent
bb97af4d86
commit
d6308e126c
1 changed files with 4 additions and 0 deletions
|
@ -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 {
|
||||
|
@ -30,6 +31,9 @@ internal class PatchOptionsTest {
|
|||
println(choice)
|
||||
}
|
||||
}
|
||||
is PatchOption.PathOption -> {
|
||||
option.value = File("test.txt").toPath()
|
||||
}
|
||||
}
|
||||
}
|
||||
val option = options["key1"]
|
||||
|
|
Loading…
Reference in a new issue