4 ms·
> Unit tests prove a different level of semantics that these warnings cannot substitute (although possibly complement). That, actually, is part of the point. U
by awj 15y ago
> Unit tests prove a different level of semantics that these warnings cannot substitute (although possibly complement).
That, actually, is part of the point. Unit tests check for correct expression of the problem domain (and solution). Compiler warnings check for correct expression of language constructs. It's possible, though not usually likely, for incorrect language usage to mask incorrect implementations.