Open-source multiplayer game server compatible with the RuneScape client
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
openrs2/deob-ir/src/test/java/dev/openrs2/deob/ir/translation/IrDecompilerTests.kt

27 lines
732 B

package dev.openrs2.deob.ir.translation
import dev.openrs2.deob.ir.translation.fixture.Fixture
import dev.openrs2.deob.ir.translation.fixture.FixtureMethod
import org.junit.jupiter.api.Test
class IrDecompilerTests {
@Test
fun `Creates entry basic block`() {
class CfgSample(val a: Boolean, val b: Boolean) :
Fixture {
override fun test() {
if (a) {
println("a")
} else if (b) {
println("b")
}
}
}
val fixture = FixtureMethod.from(CfgSample::class)
val decompiler = IrDecompiler(fixture.owner, fixture.method)
val irMethod = decompiler.decompile()
}
}