22 ms·
Writing a good unit tests always means looking at the possible value ranges and specifically the edge cases within those ranges, and adding tests for those. Tha
by layer8 4y ago
Writing a good unit tests always means looking at the possible value ranges and specifically the edge cases within those ranges, and adding tests for those. That’s the standard course of action when writing unit tests for some API. Unit tests aren’t supposed to just mimic typical usage.
- icedchai 4y agoRight. They're not supposed to test only the typical, minimal usage, but they often do. In very old C code, you'll be lucky if it has any tests at all.