News for hackers. Stuff that matters.
Re:GCC should warn about 2^16 and 2^32 and 2^64 by simion314 on Monday June 17, 2019 @05:36AM (#20201262)
Unit tests will not catch all issues, the person that writes the unit test will probably not see a corner case when implementing the code so it won't add the test for that corner case in the unit test either.
Re:GCC should warn about 2^16 and 2^32 and 2^64 by dspillett on Monday June 17, 2019 @06:13AM (#20201461)
Or if the same person is writing the test as the code it is testing, given this is a syntax error rather than a logic error, it is likely that the test will be flawed similarly.

A test passing just means that the code and the test agree, not necessarily that both are correct.