Get the latest tech news
Unit Testing Numerical Routines
A guide to testing complex mathematical algorithms, with potentially unknown expected output.
For example, we know that by definition the x-axis of the ECEF coordinate system must pass through the point at the intersection of the equatorial plane and the prime meridian. const double z = GENERATE(...) tells Catch to create new unit tests with z taking on different values based on the rules inside the macro. In fact, the more of your Verification & Validation plan that can be written up as unit tests, and integrated into your CI/CD pipeline, the faster your subject matter experts and software engineers will be able to iterate.
Or read this on Hacker News