Home
last modified time | relevance | path

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

/external/dexmaker/src/test/java/com/google/dexmaker/
DDexMakerTest.java603 Method floatToInt = numericCastingMethod(float.class, int.class); in testCastFloatingPointToInteger() local
604 assertEquals(0, floatToInt.invoke(null, 0.0f)); in testCastFloatingPointToInteger()
605 assertEquals(-1, floatToInt.invoke(null, -1.0f)); in testCastFloatingPointToInteger()
606 assertEquals(Integer.MAX_VALUE, floatToInt.invoke(null, 10e15f)); in testCastFloatingPointToInteger()
607 assertEquals(0, floatToInt.invoke(null, 0.5f)); in testCastFloatingPointToInteger()
608 assertEquals(Integer.MIN_VALUE, floatToInt.invoke(null, Float.NEGATIVE_INFINITY)); in testCastFloatingPointToInteger()
609 assertEquals(0, floatToInt.invoke(null, Float.NaN)); in testCastFloatingPointToInteger()