History log of /libcore/harmony-tests/src/test/java/org/apache/harmony/tests/java/lang/MathTest.java
Revision Date Author Comments
0239cd8c6db469d96487c1a56033a39365c9c65b 25-Jan-2018 Andreas Gampe <agampe@google.com> Libcore: Fix or suppress EqualsNaN warning in tests

The FloatTest/DoubleTest explicitly check for NaN comparison. Ignore
the errorprone warning.

Fix incorrect comparison in MathTest.

Bug: 72451126
Test: m javac-check RUN_ERROR_PRONE=true
Change-Id: I24bbfbc468162765c29f9fbfea3f20e4b2007059
f1aab72f51a6e520fd1374d2e0277363726b3481 05-Apr-2016 Yi Kong <yikong@google.com> Port OpenJDK8 java.lang functional util methods

Bug: 28036657
Change-Id: I148dda52b4cb86b76ed96b2bd2f8dc01114fe2a2
(cherry picked from commit e9d9ae3d5e57a60e20c2c01e3dceb3e51de8b9f4)
e9d9ae3d5e57a60e20c2c01e3dceb3e51de8b9f4 05-Apr-2016 Yi Kong <yikong@google.com> Port OpenJDK8 java.lang functional util methods

Bug: 28036657
Change-Id: I148dda52b4cb86b76ed96b2bd2f8dc01114fe2a2
60d6a93a65a7ba45a58867a4afd3242682b17c21 02-Mar-2016 Narayan Kamath <narayan@google.com> Double,Integer,Long: Add static hashCode / sum / max / min methods.

Also add basic tests. These methods delegate to Math.max / Math.min
respectively, so further tests have been added to the Math tests in
case these implementations ever diverge.

bug: 27423298

(cherry picked from commit 2729b8c4d261706b2ed7b17930d91c2b25e9a315)

Change-Id: I75b46e7582ae22ee759bf1f4a68a5f1b2f410864
2729b8c4d261706b2ed7b17930d91c2b25e9a315 02-Mar-2016 Narayan Kamath <narayan@google.com> Double,Integer,Long: Add static hashCode / sum / max / min methods.

Also add basic tests. These methods delegate to Math.max / Math.min
respectively, so further tests have been added to the Math tests in
case these implementations ever diverge.

bug: 27423298
Change-Id: I9c6faadea9a9d6a52d934583f86d67e1745e5dce
9ed62cd1e87a433130a089f8cf27de560c643c8a 26-Oct-2014 Elliott Hughes <enh@google.com> Allow 1 ulp difference in test_cbrt_D and test_sinh_D.

Bug: 18016320

(cherry picked from commit cf5f86467f5be5f1c3ae2a5518c65f496ac93e33)

Change-Id: I05c3810320d035323e5fec07712b47586eb100bb
(cherry picked from commit 8afb381342e073b3bfcc8700b370e381ac23b2e0)
8afb381342e073b3bfcc8700b370e381ac23b2e0 26-Oct-2014 Elliott Hughes <enh@google.com> Allow 1 ulp difference in test_cbrt_D and test_sinh_D.

Bug: 18016320

(cherry picked from commit cf5f86467f5be5f1c3ae2a5518c65f496ac93e33)

Change-Id: I05c3810320d035323e5fec07712b47586eb100bb
cf5f86467f5be5f1c3ae2a5518c65f496ac93e33 26-Oct-2014 Elliott Hughes <enh@google.com> Allow 1 ulp difference in test_cbrt_D and test_sinh_D.

Bug: 18016320
Change-Id: Ic1d09473d42922c75274635029a2d21f3691e674
ab762bb740405d0fefcccf4a0899a234f995be13 15-Nov-2013 Narayan Kamath <narayan@google.com> Move tests from tests/api to harmony-tests. (Take 2)

This reverts commit d5e281743e55e1daa297fd8043b2d9b6e8e1bed2.

The makefile issue that caused the original build break
has been resolved.
d5e281743e55e1daa297fd8043b2d9b6e8e1bed2 15-Nov-2013 Narayan Kamath <narayan@google.com> Revert "Move tests from tests/api to harmony-tests."

This reverts commit 81bf28ad31131815d0a36a43a0eca3c29aefdfcd.

Breaks build

Change-Id: I3f1562921ffe8fdbec36971dd65db398c27c92db
81bf28ad31131815d0a36a43a0eca3c29aefdfcd 15-Nov-2013 Narayan Kamath <narayan@google.com> Move tests from tests/api to harmony-tests.

The vast majority of cleaned up harmony tests
are now in harmony-tests/src/test/org/apache/harmony/tests/

Change-Id: I56c2e484ff434b5618cf6751d602ae9f0db96b30