https://github.com/cvigueras/leap-year-tdd-kata
As a user, I want to know if a year is a leap year.
https://github.com/cvigueras/leap-year-tdd-kata
csharp tdd tdd-kata testing
Last synced: 8 months ago
JSON representation
As a user, I want to know if a year is a leap year.
- Host: GitHub
- URL: https://github.com/cvigueras/leap-year-tdd-kata
- Owner: cvigueras
- License: mit
- Created: 2023-04-06T15:04:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-27T09:53:18.000Z (over 2 years ago)
- Last Synced: 2025-01-05T16:33:09.323Z (10 months ago)
- Topics: csharp, tdd, tdd-kata, testing
- Language: C#
- Homepage:
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# leap-year-tdd-kata
# User Story:
As a user, I want to know if a year is a leap year.
# Acceptance Criteria:
* All years divisible by 400 ARE leap years (so, for example, 2000 was indeed a leap year),
* All years divisible by 100 but not by 400 are NOT leap years (so, for example, 1700, 1800, and 1900 were NOT leap years, NOR will 2100 be a leap year),
* All years divisible by 4 but not by 100 ARE leap years (e.g., 2008, 2012, 2016),
* All years not divisible by 4 are NOT leap years (e.g. 2017, 2018, 2019).