Disabled until conversion is implemented. Signed-off-by: Arthur Huillet <arthur.huil...@free.fr> --- regression/jvm/FloatArithmeticTest.java | 18 +++++++++++++++++- 1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/regression/jvm/FloatArithmeticTest.java b/regression/jvm/FloatArithmeticTest.java index edd6c14..30ac318 100644 --- a/regression/jvm/FloatArithmeticTest.java +++ b/regression/jvm/FloatArithmeticTest.java @@ -111,6 +111,21 @@ public class FloatArithmeticTest extends TestCase { return -n; } + public static float i2f(int val) { + return (float) val; + } + + public static int f2i(float val) { + return (int) val; + } + + public static void testFloatIntConversion() { + assertEquals(2, f2i(2.5f)); + assertEquals(-1000, f2i(-1000.0101f)); + assertEquals(2.0f, i2f(2)); + assertEquals(-3000f, i2f(-3000)); + } + public static void main(String[] args) { testFloatAddition(); @@ -119,8 +134,9 @@ public class FloatArithmeticTest extends TestCase { testFloatSubtractionImmediateLocal(); testFloatMultiplication(); testFloatDivision(); +//TODO testFloatRemainder(); testFloatNegation(); - +// testFloatIntConversion(); exit(); } } -- 1.6.3.3 ------------------------------------------------------------------------------ _______________________________________________ Jatovm-devel mailing list Jatovm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jatovm-devel