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.java724 Method doubleToInt = numericCastingMethod(double.class, int.class); in testCastFloatingPointToInteger() local
725 assertEquals(0, doubleToInt.invoke(null, 0.0)); in testCastFloatingPointToInteger()
726 assertEquals(-1, doubleToInt.invoke(null, -1.0)); in testCastFloatingPointToInteger()
727 assertEquals(Integer.MAX_VALUE, doubleToInt.invoke(null, 10e15)); in testCastFloatingPointToInteger()
728 assertEquals(0, doubleToInt.invoke(null, 0.5)); in testCastFloatingPointToInteger()
729 assertEquals(Integer.MIN_VALUE, doubleToInt.invoke(null, Double.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
730 assertEquals(0, doubleToInt.invoke(null, Double.NaN)); in testCastFloatingPointToInteger()