Skip to content

leap: Make exercise schema-compliant#633

Merged
rbasso merged 2 commits intoexercism:masterfrom
catb0t:leap-comply
Mar 6, 2017
Merged

leap: Make exercise schema-compliant#633
rbasso merged 2 commits intoexercism:masterfrom
catb0t:leap-comply

Conversation

@catb0t
Copy link
Copy Markdown
Contributor

@catb0t catb0t commented Mar 6, 2017

Related to #625.

Comment thread exercises/leap/canonical-data.json Outdated
"comments": [
"Given a Gregorian calendar year, indicate whether it is a leap year."
],

Copy link
Copy Markdown
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.

Comment thread exercises/leap/canonical-data.json Outdated
"cases": [
{
"description": "year not divisible by 4: common year",
"property": "notLeap",
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Contributor Author

catb0t commented Mar 6, 2017

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

Copy link
Copy Markdown
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