Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add birthday attribute and tests #44

Merged
merged 5 commits into from
Mar 12, 2020
Merged

Add birthday attribute and tests #44

merged 5 commits into from
Mar 12, 2020

Conversation

Dban1
Copy link

@Dban1 Dban1 commented Mar 9, 2020

-implemented Birthday and BirthdayTest

A valid birthday satisfies the following:
-in the format "DD-MM-YYYY"
-input date is earlier than the current date

BirthdayTest includes a hard-coded test case for a birthday on 1st January 1980.

@Yonggiee
Copy link

Yonggiee commented Mar 9, 2020

fail test coverage, add more tests or uwuhan

@Dban1
Copy link
Author

Dban1 commented Mar 9, 2020

Improved coverage.

@Yonggiee Yonggiee changed the title Birthday Attribute Add birthday attribute and tests Mar 10, 2020
AaronCQL
AaronCQL previously approved these changes Mar 10, 2020
Copy link

@AaronCQL AaronCQL left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@AaronCQL AaronCQL dismissed their stale review March 12, 2020 05:56

Needs change

Comment on lines +49 to +54
// valid birthday
assertTrue(Birthday.isValidBirthday("01-01-1980")); // birthday in 01-01-1980
assertTrue(Birthday.isValidBirthday("01-01-1970")); //birthday in 01-01-1979

assertTrue(new Birthday("01-01-1980").hashCode() == new Birthday("01-01-1980").hashCode());
assertTrue(new Birthday("01-01-1980").toString().equals("01-01-1980") == true);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

abstract awayy

Copy link

@ziyingli ziyingli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ziyingli ziyingli merged commit fd12aa2 into master Mar 12, 2020
@AaronCQL AaronCQL deleted the BirthdayAttribute branch March 14, 2020 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants