Skip to content

Commit

Permalink
feat: improve LeapYear README
Browse files Browse the repository at this point in the history
  • Loading branch information
pedromsantos committed Jan 15, 2024
1 parent b8bba41 commit c365d2d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions 2_LeapYear/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,33 @@ Write a function that returns true or false depending on whether its input integ
- 1996 is a typical leap year
- 1900 is an atypical common year
- 2000 is an atypical leap year

| **Input** | **Output** |
| --------- | ---------- |
| **1** | false |
| **2** | false |
| **3** | false |
| **4** | true |
| **5** | false |
| **6** | false |
| **7** | false |
| **8** | true |
| **100** | false |
| **200** | false |
| **300** | false |
| **400** | true |
| **500** | false |
| **2001** | false |
| **1996** | true |
| **1900** | false |
| **2000** | true |

## Folow TDD rules stryctly

1. Write production code only to pass a failing unit test.
2. Write no more of a unit test than sufficient to fail (compilation failures are failures).
3. Write no more production code than necessary to pass the one failing unit test.

## Resources

TestDesiderata by Kent Beck: <https://kentbeck.github.io/TestDesiderata>

0 comments on commit c365d2d

Please sign in to comment.