Home
last modified time | relevance | path

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

/libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/
DMathTest.java617 private static void test_maxDD(boolean useMath) { in test_maxDD() argument
620 max(-1908897.6000089, 1908897.6000089, useMath), 0D); in test_maxDD()
622 1908897.6000089, max(2.0, 1908897.6000089, useMath), 0D); in test_maxDD()
623 assertEquals("Incorrect double max value", -2.0, max(-2.0, -1908897.6000089, useMath), 0D); in test_maxDD()
628 Double.toString(Double.NaN), Double.toString(max(Double.NaN, 42.0d, useMath))); in test_maxDD()
630 Double.toString(Double.NaN), Double.toString(max(42.0d, Double.NaN, useMath))); in test_maxDD()
632 Double.toString(+0.0d), Double.toString(max(+0.0d, -0.0d, useMath))); in test_maxDD()
634 Double.toString(+0.0d), Double.toString(max(-0.0d, +0.0d, useMath))); in test_maxDD()
636 Double.toString(-0.0d), Double.toString(max(-0.0d, -0.0d, useMath))); in test_maxDD()
638 Double.toString(+0.0d), Double.toString(max(+0.0d, +0.0d, useMath))); in test_maxDD()
[all …]