3 ms·
In C and C++ at least, asserts are also hints for the static analyzer (for instance that a pointer isn't expected to be null). It's better to do both, asserts
by flohofwoe 3y ago
In C and C++ at least, asserts are also hints for the static analyzer (for instance that a pointer isn't expected to be null).
It's better to do both, asserts and tests are not mutually exclusive, they complement each other.