fix: add tests for PathOption

This commit is contained in:
Sculas 2022-09-06 22:35:00 +02:00
parent bb97af4d86
commit d6308e126c
No known key found for this signature in database
GPG key ID: 1530BFF96D1EEB89

View file

@ -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"]