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.java632 Method floatToInt = numericCastingMethod(float.class, int.class); in testCastFloatingPointToInteger() local
633 assertEquals(0, floatToInt.invoke(null, 0.0f)); in testCastFloatingPointToInteger()
634 assertEquals(-1, floatToInt.invoke(null, -1.0f)); in testCastFloatingPointToInteger()
635 assertEquals(Integer.MAX_VALUE, floatToInt.invoke(null, 10e15f)); in testCastFloatingPointToInteger()
636 assertEquals(0, floatToInt.invoke(null, 0.5f)); in testCastFloatingPointToInteger()
637 assertEquals(Integer.MIN_VALUE, floatToInt.invoke(null, Float.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
638 assertEquals(0, floatToInt.invoke(null, Float.NaN)); in testCastFloatingPointToInteger()