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

leap: Make exercise schema-compliant #633

Merged
merged 2 commits into from
Mar 6, 2017
Merged

Conversation

catb0t
Copy link
Contributor

@catb0t catb0t commented Mar 6, 2017

Related to #625.

"comments": [
"Given a Gregorian calendar year, indicate whether it is a leap year."
],

Copy link
Contributor

@rbasso rbasso Mar 6, 2017

Choose a reason for hiding this comment

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

This comment may be nice, but it was not in the original test suite and also is not needed for compliance, so maybe it should not be part of this PR.

If you think it must be here, a third commit would be perfect for it.

"cases": [
{
"description": "year not divisible by 4: common year",
"property": "notLeap",
Copy link
Contributor

Choose a reason for hiding this comment

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

About isLeap and notLeap

All the tests in this test suite use exactly the same test logic, only changing the test data, so they should have the same property value. isLeapYearand leapYear are good candidates

Copy link
Contributor

@rbasso rbasso left a comment

Choose a reason for hiding this comment

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

Thanks for opening the PR. 👍

The idea when I suggested separating in two commits was to be able to see where the data changed for an easier review, but the first commit seems to change data and also formatting.

Anyway, I visually checked it and it seems that the data has not changed. 👍

@catb0t
Copy link
Contributor Author

catb0t commented Mar 6, 2017

Oh, ok -- hopefully this is more what you wanted.

Copy link
Contributor

@rbasso rbasso left a comment

Choose a reason for hiding this comment

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

Seems perfect, @catb0t!

@rbasso rbasso merged commit 493ee37 into exercism:master Mar 6, 2017
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.

2 participants