Add tests for dotnet/coreclrdotnet/corefx#20815 - new Math and MathF rounding modes...
authorhamish-rose <hamishr@protonmail.com>
Mon, 4 Mar 2019 16:03:27 +0000 (05:03 +1300)
committerTanner Gooding <tagoo@outlook.com>
Mon, 4 Mar 2019 16:03:27 +0000 (08:03 -0800)
commit2f3f6f81fcb4194e76bdba7d1b4e2efee9d31dc8
treeb4504a0bc1279e4522c424326f3da32d560fd6ad
parent816802e154b90200b6a392ad75d3a0dfc4fdeeee
Add tests for dotnet/coreclrdotnet/corefx#20815 - new Math and MathF rounding modes (dotnet/corefx#33297)

* add tests for new midpointrounding modes

new tests added for Math.cs double Round methods

* add tests for float, decimal

convert to theory

* Update tests

tests now reflect correct rounding behavior

* add tests for existing modes

* code review feedback

- refactor tests to use member data
- move MathF tests to MathF.netcoreapp.cs
- add tests for new modes with digits and special cases

* move math tests to mathtests.netcoreapp.cs

netcoreapp specific tests moved

Commit migrated from https://github.com/dotnet/corefx/commit/cc42bb95b0877a653d4f556a0839d261ea3563b7
src/libraries/System.Runtime.Extensions/tests/System/MathF.netcoreapp.cs
src/libraries/System.Runtime.Extensions/tests/System/MathTests.netcoreapp.cs