test/testautomation_math.c


Log

Author Commit Date CI Message
Pierre Wendling 6bd3e0b1 2022-06-15T15:58:48 Test: Check sqrt and atan against the epsilon. On i686-linux, the `sqrt_regularCases` and `atan_limitCases` tests would fail as the result was not precise enough.
Pierre Wendling 9eb09d23 2022-05-06T13:39:44 Test: Refactored and formatted math test suite.
Pierre Wendling e64acb61 2022-05-04T14:25:10 Test: Fix for-loop for OS/2 in math suite.
Pierre Wendling a3a852e9 2022-05-04T13:51:42 Test: Unrolled the array of cases in math suite. On OS/2, `INFINITY` is a `const double` which cannot be used to instantiate an array.
Pierre Wendling c23216bf 2022-05-04T13:20:09 Test: Removed static from local variables (Math). Static would break compilation on OS/2.
Pierre Wendling 6646edf6 2022-05-04T13:10:41 Test: Fix Windows build for math suite.
Pierre Wendling 7389eba9 2022-05-04T12:49:25 Test: Fix C89 declaration and math include.
Pierre Wendling b3faebb8 2022-05-04T12:40:24 Test: Add Floor tests to math.
Pierre Wendling b72b5d0f 2022-05-04T12:39:49 Test: Add math automation test suite.
Pierre Wendling cee47a9e 2022-06-15T14:36:13 Test: Use inexact helper for log10 regular cases. On ARMv6, the result is not precise enough for this function.
Pierre Wendling a52b8580 2022-05-27T23:49:42 Test: Tidy up test descriptions and documentation. Test function documentation now lists the input(s) and expected output(s). Descriptions in TestCaseReference were updated.
Pierre Wendling 4d7f12f6 2022-05-25T01:28:03 Test: Add Atan2 tests to math suite.
Pierre Wendling 8ebe640a 2022-05-25T00:41:06 Test: Change inexact tests to use an epsilon. Instead of using `trunc` to check the first ten digits, inexact test now relies on an epsilon defining an acceptable range for the expected result to be in.
Pierre Wendling 62fd6aad 2022-05-23T20:12:28 Test: Add Atan tests to math suite.
Pierre Wendling 6a6e93bc 2022-05-21T23:11:40 Test: Add +/-0.0 tests to Acos.
Pierre Wendling 6b4b6d8e 2022-05-21T23:01:50 Test: Add Asin tests to math suite.
Pierre Wendling 43f6983a 2022-05-21T21:51:48 Test: Add Acos tests to math suite.
Pierre Wendling 95f6edb9 2022-05-21T20:07:14 Test: Refactor trigonometric tests into a helper. The precision test of these functions need a special helper, it can also be used for their arc functions down the line.
Pierre Wendling 3b9f47b8 2022-05-20T21:45:31 Test: Remove early return in pow test.
Pierre Wendling 6be430c7 2022-05-16T20:54:59 Test: Add Tan tests to math suite.
Pierre Wendling af79b46f 2022-05-16T20:34:07 Test: Add Sin tests to math suite.
Pierre Wendling b06eda55 2022-05-16T20:02:24 Test: Fix math suite build on Win32. The cosine precision test now uses an array of double and the result gets truncated instead of casted to signed int64.
Pierre Wendling adb445ea 2022-05-16T18:29:08 Test: Add Cos tests to math suite.
Pierre Wendling a864180c 2022-05-15T19:36:30 Test: Add float header for FLT_RADIX definition.
Pierre Wendling 7a55fa4e 2022-05-15T19:03:53 Test: Add Scalbn tests to math suite.
Pierre Wendling afd81237 2022-05-15T17:43:38 Test: Add Sqrt tests to math suite.
Pierre Wendling c389c32d 2022-05-15T17:00:12 Test: Change assertion type in range tests. Changes SDLTest_AssertPass(...) to SDLTest_AssertCheck(SDL_FALSE, ...) for failed assertions so the internal counter gets updated properly.
Pierre Wendling 5ecc75a4 2022-05-15T16:30:38 Test: Add Pow tests to math suite.
Pierre Wendling 6349ad73 2022-05-15T11:52:12 Test: Add Log10 tests to math suite.
Pierre Wendling 7041bbaf 2022-05-15T11:36:12 Test: Add Log tests to math suite.
Pierre Wendling dd30ff2e 2022-05-12T22:19:59 Test: Add Exp tests to math suite.
Pierre Wendling aacb5e17 2022-05-11T22:17:18 Test: Extract range test parameters into defines.
Pierre Wendling 75b9aab6 2022-05-11T22:04:28 Test: Add Fmod tests to math suite.
Pierre Wendling 0dbdf90e 2022-05-11T12:54:16 Test: Use SDLCALL in typedefs instead of ifdefs. Thanks to @sezero for the tip.
Pierre Wendling 2ec48b36 2022-05-10T22:55:41 Test: Fix OS/2 compilation in math suite.
Pierre Wendling 43c22e5d 2022-05-10T22:07:28 Test: Refactor math suite duplicate code. Many tests were using the same underlying routine, as such three helper functions were added: - A wrapper to test double -> double functions. - A wrapper to test (double, double) -> double functions, - A wrapper for range tests on double -> double functions.
Pierre Wendling 3d720ba3 2022-05-10T21:05:05 Test: Refactor math suites edge cases. Split infinity and zero checks in their own functions. The result of NAN tests is now logged. The SDL_TestCaseReference structure were renamed to be more explicit.
Pierre Wendling a530fc91 2022-05-09T22:56:44 Test: Add Copysign tests to math suite.
Pierre Wendling 48a406db 2022-05-06T14:32:50 Test: Add Fabs tests to math suite.
Pierre Wendling 2130dff0 2022-05-06T14:19:44 Test: Add Round tests to math suite.
Pierre Wendling 324b9615 2022-05-06T13:57:02 Test: Add Trunc tests to math suite.
Pierre Wendling b09266a4 2022-05-06T13:51:04 Test: Add Ceil tests to math suite.