test: replace const values

This commit is contained in:
Skylot
2020-07-20 13:55:29 +01:00
parent 0f808d5c60
commit 867c3413e9
@@ -0,0 +1,26 @@
package jadx.tests.integration.arith;
import org.junit.jupiter.api.Test;
import jadx.NotYetImplemented;
import jadx.tests.api.IntegrationTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestSpecialValues2 extends IntegrationTest {
public static class TestCls {
private static int compareUnsigned(final int x, final int y) {
return Integer.compare(x + Integer.MIN_VALUE, y + Integer.MIN_VALUE);
}
}
@NotYetImplemented("Constant value replace")
@Test
public void test() {
noDebugInfo();
assertThat(getClassNode(TestCls.class))
.code()
.countString(2, "Integer.MIN_VALUE");
}
}