Searched refs:doubleToFloat (Results 1 – 1 of 1) sorted by relevance
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/ |
D | DexMakerTest.java | 750 Method doubleToFloat = numericCastingMethod(double.class, float.class); in testCastFloatingPointToFloatingPoint() local 751 assertEquals(0.0f, doubleToFloat.invoke(null, 0.0)); in testCastFloatingPointToFloatingPoint() 752 assertEquals(-1.0f, doubleToFloat.invoke(null, -1.0)); in testCastFloatingPointToFloatingPoint() 753 assertEquals(0.5f, doubleToFloat.invoke(null, 0.5)); in testCastFloatingPointToFloatingPoint() 754 assertEquals(Float.NEGATIVE_INFINITY, doubleToFloat.invoke(null, Double.NEGATIVE_INFINITY)); in testCastFloatingPointToFloatingPoint() 755 assertEquals(Float.NaN, doubleToFloat.invoke(null, Double.NaN)); in testCastFloatingPointToFloatingPoint()
|