Home
last modified time | relevance | path

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

/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java648 Method doubleToInt = numericCastingMethod(double.class, int.class); in testCastFloatingPointToInteger() local
649 assertEquals(0, doubleToInt.invoke(null, 0.0)); in testCastFloatingPointToInteger()
650 assertEquals(-1, doubleToInt.invoke(null, -1.0)); in testCastFloatingPointToInteger()
651 assertEquals(Integer.MAX_VALUE, doubleToInt.invoke(null, 10e15)); in testCastFloatingPointToInteger()
652 assertEquals(0, doubleToInt.invoke(null, 0.5)); in testCastFloatingPointToInteger()
653 assertEquals(Integer.MIN_VALUE, doubleToInt.invoke(null, Double.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
654 assertEquals(0, doubleToInt.invoke(null, Double.NaN)); in testCastFloatingPointToInteger()