-
Notifications
You must be signed in to change notification settings - Fork 315
added template #73
base: master
Are you sure you want to change the base?
added template #73
Conversation
Create Template for I/O.
added Logic part and completed the code.
Code Completed
title: "Leap Years" This short and simple Kata should be performed in pairs using Test Driven Development (TDD). Prior to 1582, the Julian Calendar was in wide use and defined leap years as every year divisible by 4. However, it was found in the late 16th century that the calendar year had drifted from the solar year by approximately 10 days. The Gregorian Calendar was defined in order to thin out the number of leap years and to more closely align the calendar year with the solar year. It was adopted in Papal countries on October 15, 1582, skipping 10 days from the Julian Calendar date. Protestant countries adopted the Gregorian Calendar after some time. The Gregorian Calendar is quite accurate, but could be made more accurate by adding an additional rule that eliminates years divisible by 4000 as leap years. But I guess we’ll cross that bridge when we come to it. Consider adding this rule as a second story as an extension to the exercise. User Story: As a user, Acceptance Criteria:
A leap year is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400 File LeapYear.png shows the trace of my work in this kata. This graph has been generated with Pulse, a plug-in for Eclipse IDE. |
package leapyear; import static org.junit.Assert.*; import org.junit.Before; public class TestLeapYear {
} |
package leapyear; public class LeapYear {
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please, move your solution un right category.
Create Template for I/O.