I\'m implementing unit tests for a family of functions that all share a number of invariants. For example, calling the function with two matrices produce a matrix of known s
I see that this question is old. I'm not sure about back then, but today maybe you could use some "data-driven testing" packages: