-
Notifications
You must be signed in to change notification settings - Fork 2
Testing
JSund edited this page Sep 14, 2010
·
2 revisions
Some notes on specific things to test for when designing this library. This list will be extended as I come up with more to add here.
- Empty strings
- Copy empty string
- Empty string on one/both sides of concatenation
- Limits with null termination
- Check that strings that would fit without the null termination will be truncated
- Errors
- Check all available error conditions
- Overflow handling
- Check that no data is written past the end of the buffer when input is too large
- Check that no unwanted data is written
- No writes past the null termination
- Appropriate behaviour when errors occurs