https://github.com/objarni/leapyearskata
https://github.com/objarni/leapyearskata
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/objarni/leapyearskata
- Owner: objarni
- License: mit
- Created: 2021-03-11T13:29:05.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-15T06:59:00.000Z (about 5 years ago)
- Last Synced: 2025-02-06T11:55:19.896Z (over 1 year ago)
- Language: CMake
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Leap Years TDD kata
Write a function that returns true or false depending on whether its input integer is a leap year or not. A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400. For example 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.