aboutsummaryrefslogtreecommitdiff
path: root/unittests
Commit message (Collapse)AuthorAgeFilesLines
* fixed division, undefined behaviors and some improvements (#33)Martin Bařinka2021-05-037-854/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * testing using ctest * emove old testing script * added github workflow CI * updated CI * added unit test for macros * F16() and F16C() are both rounding allways, so fix16_from_dbl should as well * added tests for strign operations, but these functions are in my opinion unreliable and tests are failing * removed old unittests * removed old unittests from cmake * problem with division using gcc * improved benchmark * clarification of problem with division * attempt to fix * fixed some undefined behaviors, fixed division
* Make unittest #include path consistent (#29)Petteri Aimonen2021-04-292-2/+2
|
* New unittests (#28)Martin Bařinka2021-04-293-4/+4
| | | Refactor unittests
* Removed 64-bit restriction on linear interpolation functions. Added more ↵Chris Hammond2020-10-292-2/+42
| | | | | | test cases and fixed several bugs in the 64-bit arithmetic functions. Also added script to run all unit tests.
* Added unit tests for "lerp" functions, and found several type conversion bugsChris Hammond2020-10-221-0/+30
|
* add FIXMATH_NO_CTYPE optionDavid Lechner2019-06-161-6/+9
| | | | | | | | When compiling with -nostdlib, the functions in ctype may not be available. Add FIXMATH_NO_CTYPE option to replace them with inline functions. Also add unit test to test str functions with this option enabled.
* clean all unit testsDavid Lechner2019-06-161-0/+3
| | | | make clean should delete all unit test binary files
* Add F16C() macro for defining values without float support.PetteriAimonen2014-12-302-1/+118
| | | | Implementation by Jonas Zeiger.
* Fix bug in fix16_str_unittests on Windows.PetteriAimonen2013-04-191-1/+1
| | | | | Fixes issue 23.
* Fixed erronous printout of division unit test.Flatmush2012-08-311-3/+3
|
* Added to/from string conversion functions, and testcases for them.Petteri.Aimonen2012-08-292-2/+127
|
* Perform the fix16_min -> fix16_minimum rename in unittests to make them work ↵Petteri.Aimonen2012-08-292-12/+12
| | | | again.
* Improved fix16_exp() (half runtime, more accuracy), added fix16_log(), made ↵Petteri.Aimonen2012-02-272-2/+134
| | | | unittests for both.
* Merging a bunch of separately developed functions:Petteri.Aimonen2012-01-263-0/+404
fix16_mul, fix16_div, fix16_sqrt. They are faster & more accurate than the previous versions. Closes issue #13. Includes unittests for the functions in question, runnable by typing 'make' in the unittests folder.