|
|
Added test coverage for public API methdos:
* multiplyExact(long, int)
Imported jdk/jdk11/test/jdk/java/lang/StrictMath/ExactArithTests.java
Upstream commit: 51151:1ddf9a99e4ad
* multiplyHigh(long, long)
Imported from jdk/jdk11/test/jdk/java/lang/Math/MultiplicationTests.java
Note that test is imported from Math, not StrictMath as APIs are the same
but StrictMath test suite is missing MultiplicationTests.java.
Upstream commit: 51151:1ddf9a99e4ad
* multiplyFull(int, int)
Added as regular test in luni/ as upstream has not coverage for this method
at all.
Bug: 183239578
Bug: 182167025
Test: atest CtsLibcoreOjTestCases:test.java.lang.StrictMath.ExactArithTests \
CtsLibcoreOjTestCases:test.java.lang.StrictMath.MultiplicationTests \
CtsLibcoreTestCases:libcore.java.lang.StrictMathTest
Change-Id: I12e94dc3a51ce49797983e1340c46d02babccc91
Merged-In: Idd03cde1c22861a040981ae8ce35afb66e1cf437
(cherry picked from commit ecebe98368f26ab08daadd297179fc6ee54af23c)
|