Home
last modified time | relevance | path

Searched refs:floatToInt (Results 1 – 1 of 1) sorted by relevance

/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java708 Method floatToInt = numericCastingMethod(float.class, int.class); in testCastFloatingPointToInteger() local
709 assertEquals(0, floatToInt.invoke(null, 0.0f)); in testCastFloatingPointToInteger()
710 assertEquals(-1, floatToInt.invoke(null, -1.0f)); in testCastFloatingPointToInteger()
711 assertEquals(Integer.MAX_VALUE, floatToInt.invoke(null, 10e15f)); in testCastFloatingPointToInteger()
712 assertEquals(0, floatToInt.invoke(null, 0.5f)); in testCastFloatingPointToInteger()
713 assertEquals(Integer.MIN_VALUE, floatToInt.invoke(null, Float.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
714 assertEquals(0, floatToInt.invoke(null, Float.NaN)); in testCastFloatingPointToInteger()