Suppose the preconditions of my object functions are checked with assert(). How can I, without taking my hair from the process, write meaningful unit tests that catch failures when I pass invalid parameters for functions?
I mean, it assert()will be abort(), so how can I do all the other tests after that?
source
share