• kth.se
  • Student web
  • Intranet
  • kth.se
  • Student web
  • Intranet
Login
DD2480 VT25 (se25)
Mini-assignment: Boundary case testing
Skip to content
Dashboard
  • Login
  • Dashboard
  • Calendar
  • Inbox
  • History
  • Help
Close
  • Min översikt
  • DD2480 VT25 (se25)
  • Assignments
  • Mini-assignment: Boundary case testing
2025 VT
  • Home
  • Modules
  • Assignments
  • OLI Torus SE
  • Course Evaluation

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
This assignment was locked 12 Feb at 11:00.

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:

  1. What did you expect as the answer?
  2. What does the answer tell you about the system?
  3. 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")?

1739354400 02/12/2025 11:00am
Please include a description
Additional comments:
Rating max score to > Pts
Please include a rating title

Rubric

Find rubric
Please include a title
Find a rubric
Title
You've already rated students with this rubric. Any major changes could affect their assessment results.
 
 
 
 
 
 
 
     
Can't change a rubric once you've started using it.  
Title
Criteria Ratings Pts
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
This criterion is linked to a learning outcome Description of criterion
threshold: 5 pts
Edit criterion description Delete criterion row
5 to >0 Pts Full marks blank
0 to >0 Pts No marks blank_2
This area will be used by the assessor to leave comments related to this criterion.
pts
  / 5 pts
--
Additional comments
Total points: 5 out of 5