Right-BI[C]EP: Cross-Checking Using Other Means

Learn about the use of other means to cross-check the tests.

Any interesting problem has many solutions. We will choose our preferred solution based on any number of reasons. That leaves the other solutions open for cross-checking the production results.

Even if the alternate solutions are too slow or inflexible for production use, they can help cross-check our preferred solution.

Implementation of the square root

We can use the Java library implementation of square root to cross-check. We check whether or not our new spiffy square-root logic produces the same results as Math.sqrt():

Get hands-on with 1200+ tech skills courses.