aboutsummaryrefslogtreecommitdiff
path: root/test/common/math.h
AgeCommit message (Collapse)Author
2019-04-12TESTS: Reduce error for double precision math testThierry Crozat
If we want to properly test the computation is in double precision, we should be using a much smaller error than the one used for the single precision tests.
2019-04-11TESTS: Use relative difference for math testsDavid Fioramonti
Also add double template variants and use already defined delta assert macro.
2019-04-11TESTS: further reduce precision for math testsDavid Fioramonti
Since the math is doing subtraction on numbers around 360 and single precision has about ~7 decimal digits of accuracy we can only compare numbers to 360.0001 to be safe i'll use 1e-3.
2019-04-11TESTS: reduce precision for math testsDavid Fioramonti
I can't reproduce any precision issues on my machine so this is only a guess.
2019-04-11TESTS: Use Less than or equal to for math testsDavid Fioramonti
This should fix debian build. Its seems the precision that debian is using is rounding the error delta to zero so that the actual error is not less than this.
2019-04-06TESTS: Use M_PI for Common math testsDavid Fioramonti
Instead of defining a new variable constant pi we use M_PI.
2019-04-06COMMON: add 2 tests for common/math.hJaromir Wysoglad
2011-08-19TEST: Add a very tiny and simple unit test for intLog2.Johannes Schickel