Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Aging issues #25

Merged
merged 1 commit into from
Sep 4, 2016
Merged

Aging issues #25

merged 1 commit into from
Sep 4, 2016

Conversation

alexstyl
Copy link
Owner

@alexstyl alexstyl commented Sep 4, 2016

Description

Currently it is possible to create Birthdays that people are born in year -1 which doesn't make sense. This also causes the UI to display some crazy birthday ages (such as 2016 etc).

This PR hides the constructors of the Birthday class and uses factory methods instead. The factory methods throw exceptions if a invalid year is passed.

Test(s) added

yes. Added some more tests around the Birthday class

@alexstyl alexstyl added the bug label Sep 4, 2016
@alexstyl alexstyl merged commit 1d0c7ad into develop Sep 4, 2016
@alexstyl alexstyl deleted the issues/age_issue branch September 4, 2016 19:03
@alexstyl alexstyl mentioned this pull request Sep 4, 2016
alexstyl added a commit that referenced this pull request Jul 4, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant