Unit Testing Numerical Routines
(buchanan.one)
As a prudent programmer, you probably do not consider your code finished until it has passed a rigorous set of unit tests. However, numerical routines such as this one present difficulties for unit testing. How can you be confident the function is correct in general? What if you don't know the expected output? What if the underlying algorithm changes?
As a prudent programmer, you probably do not consider your code finished until it has passed a rigorous set of unit tests. However, numerical routines such as this one present difficulties for unit testing. How can you be confident the function is correct in general? What if you don't know the expected output? What if the underlying algorithm changes?