Mini-assignment: Boundary case testing
- Due 12 Feb by 11:00
- Points 1
- Submitting a text entry box
- Available 12 Feb at 10:15 - 12 Feb at 11:00 45 minutes
What is the same day of the month in the next month?
This seems to be a simple question, and it is relevant in many contexts such as when a monthly ticket or subscription expires. However, it is subtler than you might think.
Try
You can try out two tests that show potential difficulties with the built-in date utility (in any shell on Linux or Mac OS):
date -d '2025-02-01 + 1 month'
date -d '2025-01-31 + 1 month'
If you do not have a working shell, try logging in to student-shell.sys.kth.se.
Write a brief report (bullets are suffiicent) to answer the following:
- What did you expect as the answer?
- What does the answer tell you about the system?
- What kind of problem can boundary case testing reveal?
Optional: What insights have you gained regarding date handling and requirements such as the question in the title ("the same day of the month... next month")?