Home
last modified time | relevance | path

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

/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DDexMakerTest.java716 Method floatToLong = numericCastingMethod(float.class, long.class); in testCastFloatingPointToInteger() local
717 assertEquals(0L, floatToLong.invoke(null, 0.0f)); in testCastFloatingPointToInteger()
718 assertEquals(-1L, floatToLong.invoke(null, -1.0f)); in testCastFloatingPointToInteger()
719 assertEquals(10000000272564224L, floatToLong.invoke(null, 10e15f)); in testCastFloatingPointToInteger()
720 assertEquals(0L, floatToLong.invoke(null, 0.5f)); in testCastFloatingPointToInteger()
721 assertEquals(Long.MIN_VALUE, floatToLong.invoke(null, Float.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
722 assertEquals(0L, floatToLong.invoke(null, Float.NaN)); in testCastFloatingPointToInteger()