From d6308e126c6217b098192c51b6e98bc85a8656bd Mon Sep 17 00:00:00 2001 From: Sculas Date: Tue, 6 Sep 2022 22:35:00 +0200 Subject: [PATCH] fix: add tests for PathOption --- .../kotlin/app/revanced/patcher/patch/PatchOptionsTest.kt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/test/kotlin/app/revanced/patcher/patch/PatchOptionsTest.kt b/src/test/kotlin/app/revanced/patcher/patch/PatchOptionsTest.kt index c7d2039..d983abc 100644 --- a/src/test/kotlin/app/revanced/patcher/patch/PatchOptionsTest.kt +++ b/src/test/kotlin/app/revanced/patcher/patch/PatchOptionsTest.kt @@ -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"]