-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review and round out decimal64 testing #1
Comments
Test underflow scenarios for Add/Quo, etc. (Min/2 = 0) in decimal64math_test.go |
Some ideas: Another idea was to just use the test cases that the C standard uses for their decimal type: Although we haven't implemented rounding attributes or expendable precision isn't working in our repo so the test cases will need to be filtered |
A reference implementation for testing is a great idea! #17 |
Current known issues: Faults found from decTest/ddAdd.decTest http://speleotrove.com/decimal/dectest.html |
payload Nans act as a way to provide extra context to the NaN and need to be supported for libraries that may use the decimal package in the future ie |
A key concern is accurate numeric outcomes for all arithmetic operations, including parsing and formatting. The last thing we want is some variant of 0.1 + 0.1 + 0.1 ≠ 0.3.
Some thought needs to go into the completeness of the tests such that all conceivable edge cases are covered. The following is a reasonably thorough but incomplete set of cases to consider.
The text was updated successfully, but these errors were encountered: