2 ms·
I think I understand the concept. But if you trip an assertion like in the example code, that means there was a bug prior to the function call... (and the progr
by z3t4 6y ago
I think I understand the concept. But if you trip an assertion like in the example code, that means there was a bug prior to the function call... (and the program would crash with a dump and stack). I however see no point in unit testing that function (unless its more complicated then the example code)