summaryrefslogtreecommitdiff
path: root/luni/src/test/resources/math_java_only.csv
Commit message (Collapse)AuthorAgeFilesLines
* Update Math and StrictMath partially to 11+28Nikita Iashchenko2021-01-201-115/+115
| | | | | | | | | | | | | | | | | | | | | | | | | | | StrictMath methods are essentially the same as Math's so include them both in the same CL. They are also covered by unified unit tests. Added two constants: * DEGREES_TO_RADIANS * RADIANS_TO_DEGREES Added methods: * multiplyExact(long, int) * multiplyFull(int, int) * multiplyHigh(long, long) * floorDiv(long, int) * floorMod(long, int) Added unit tests. Updated csv test expectations for toRadians() and toDegrees() as newly introduced constants improve double precision slightly. Test: atest CtsLibcoreOjTestCases:test.java.lang.Math.ExactArithTests \ CtsLibcoreOjTestCases:test.java.lang.Math.DivModTests \ CtsLibcoreOjTestCases:test.java.lang.Math.MultiplicationTests \ CtsLibcoreTestCases:libcore.java.math.RunCSVTests \ CtsLibcoreTestCases:libcore.java.math.RunCSVTestsStrict Change-Id: Ic54b52e912faf335515fff37baf5854bdf28952b
* Add math tests in csv format for libcore math functionsMichael Chen2014-07-211-0/+4132
The goal here is to have a csv file with math tests that different parts of Android can all use the same math tests. This change provides these initial csv files as well as the corresponding testing framework for libcore. Change-Id: I56430bd9224d92853aefa5024d6fdd1d10dfb255