2 ms·
That's because you're not testing things that wouldn't require tests in a static language. You're testing things that need testing either way, and incidentally
by mpweiher 9y ago
That's because you're not testing things that wouldn't require tests in a static language.
You're testing things that need testing either way, and incidentally also testing the types.
- sidlls 9y agoNo, you're testing types and verifying the implementation details of the language. It's rare that a test for logic "incidentally" tests the type system. Usually both the logic and type checks are tested. It's just obfuscated because the bulk of the test is for checking the types and it's easy to look past that.
- mpweiher 9y agoYes, it doesn't test the "type system" (whatever that even means). However, it tests values for correctness. Values have types. So if you are testing whether something has the correct value, you are also testing implicitly that it has the correct type, because for the values to match, the types must also match.