3 ms·
Yes, you write a new test for each new feature. But if you do the same thing in a statically typed language, once you've allowed arrays, and what not, how do yo
by z3t4 7y ago
Yes, you write a new test for each new feature. But if you do the same thing in a statically typed language, once you've allowed arrays, and what not, how do you know if the function still works, besides carefully studying it.
- mgraczyk 7y agoThe point is that you need more tests. In statically typed languages, you typically don't make it "just work" and hence need fewer tests.
- AnimalMuppet 7y agoWell, you don't make it "just work" for all conceivable input shapes. You make it work for the one and only accepted input shape, which is 1) much easier to make work, 2) means that you don't miss possible input shapes, and 3) is much easier to test thoroughly.