-
-
Notifications
You must be signed in to change notification settings - Fork 550
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
Conversation
exercises/leap/canonical-data.json
Outdated
"comments": [ | ||
"Given a Gregorian calendar year, indicate whether it is a leap year." | ||
], | ||
|
There was a problem hiding this comment.
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.
exercises/leap/canonical-data.json
Outdated
"cases": [ | ||
{ | ||
"description": "year not divisible by 4: common year", | ||
"property": "notLeap", |
There was a problem hiding this comment.
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. isLeapYear
and leapYear
are good candidates
There was a problem hiding this 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. 👍
Oh, ok -- hopefully this is more what you wanted. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems perfect, @catb0t!
Related to #625.