Closed JSorngard closed 1 month ago
It is possible to test to larger input values, but the exponents on the outputs are so large that the small differences in the mantissa due to different floating point errors between the function and the test code result in values that differ enough to need custom epsilon values.
I added a big test case manually
This PR adds a test of the
factorial
function inpuruspe
, by calculating the factorial naively in a loop and comparing with the output. I use approximate comparisons because there are different floating point errors at very large outputs.This adds tests for one of the
utils
functions for #12.