Home
last modified time | relevance | path

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

/external/dexmaker/src/test/java/com/google/dexmaker/
DDexMakerTest.java611 Method floatToLong = numericCastingMethod(float.class, long.class); in testCastFloatingPointToInteger() local
612 assertEquals(0L, floatToLong.invoke(null, 0.0f)); in testCastFloatingPointToInteger()
613 assertEquals(-1L, floatToLong.invoke(null, -1.0f)); in testCastFloatingPointToInteger()
614 assertEquals(10000000272564224L, floatToLong.invoke(null, 10e15f)); in testCastFloatingPointToInteger()
615 assertEquals(0L, floatToLong.invoke(null, 0.5f)); in testCastFloatingPointToInteger()
616 assertEquals(Long.MIN_VALUE, floatToLong.invoke(null, Float.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
617 assertEquals(0L, floatToLong.invoke(null, Float.NaN)); in testCastFloatingPointToInteger()