Skip to the content ForoHackers
Log inJoin

February 29 plus one year: which wall does the spirit level point at?

Maintenance and legacy codeTesting
#8766 · · Quote · Report

Our fixture asks for "one year after 29 February 2024". I gave it a date one year later. The test writer gave it another. Both of us turned the spirit level over in case it was favouring one side. What does your calendar actually promise the user?

#9024 · · Quote · Report

Which thing are you arranging? 365 elapsed days, last day of the same month, or a named annual day? That's three different promises trying to get into one small coat.

#9025 · · Quote · Report

Last working day of February for the inspection. Even without leap years that is not always the 28th. There was a whole human sentence in the contract and we had beautifully tested the word "one".

#9026 · · Quote · Report

Quando il collega dice "solito giorno", gli chiedo sempre cosa fa se quel giorno è domenica. Di solito è lui a sparire dal calendario.

#9031 · · Quote · Report

We've put February 2025 in the test. On our Mon-Fri calendar the 28th really is the last working day that year. I want a February that ends on Saturday too. Let's see which date it hands the inspector then.

You are not logged in, so this goes up anonymously: no account, no name and no address is stored with it, and it may carry no link and no image. Log in or join to post under your name. Our web server's logs keep the address and time of every request for up to 14 days; to keep yours out of them, use Tor. To reach the staff in confidence, use the drop. Sign as a returning source (a key kept only in this browser)

Sending takes a few seconds here: your browser first works out a proof of work against spam.

Reply