1
mirror of https://github.com/revanced/revanced-patcher synced 2024-11-27 18:13:37 +01:00

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