Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/math/
DDoubleUtilsTest.java48 assertEquals(0.0, DoubleUtils.ensureNonNegative(0.0)); in testEnsureNonNegative()
50 assertEquals(positiveValue, DoubleUtils.ensureNonNegative(positiveValue)); in testEnsureNonNegative()
51 assertEquals(0.0, DoubleUtils.ensureNonNegative(-positiveValue)); in testEnsureNonNegative()
53 assertEquals(Double.POSITIVE_INFINITY, DoubleUtils.ensureNonNegative(Double.POSITIVE_INFINITY)); in testEnsureNonNegative()
54 assertEquals(0.0, DoubleUtils.ensureNonNegative(Double.NEGATIVE_INFINITY)); in testEnsureNonNegative()
56 DoubleUtils.ensureNonNegative(Double.NaN); in testEnsureNonNegative()
/external/guava/guava/src/com/google/common/math/
DDoubleUtils.java138 static double ensureNonNegative(double value) { in ensureNonNegative() method in DoubleUtils