3 ms·
Types make some tests redundant. I've seen unit tests in Python code bases that were simply there to make sure that a function did something sane if a value of
by kelnos 3y ago
Types make some tests redundant. I've seen unit tests in Python code bases that were simply there to make sure that a function did something sane if a value of the wrong type was passed to it.
I think it's absolutely certain that, to achieve the same level of confidence in your code, you need more unit tests for, say, a Python code base, than for a Java code base.