It was an idea raised when we were reviewing @TheoPannetier 's code yesterday.
Throughout the code base there exist various method in the tests to test whether the error produced (due to computer arithmetic errors) is within the tolerance.
Our opinion is that we should standardize the method, as well as the tolerance value. To make it easier, we might need to implement a utility function to do the job, to save a lot of time of people writing redundant code.
It was an idea raised when we were reviewing @TheoPannetier 's code yesterday. Throughout the code base there exist various method in the tests to test whether the error produced (due to computer arithmetic errors) is within the tolerance.
Example 1
Example 2
Our opinion is that we should standardize the method, as well as the tolerance value. To make it easier, we might need to implement a utility function to do the job, to save a lot of time of people writing redundant code.