Skip to content

WIP: Test that bin/check_optional works. (Do not merge) #1541

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

Closed
wants to merge 1 commit into from
Closed

WIP: Test that bin/check_optional works. (Do not merge) #1541

wants to merge 1 commit into from

Conversation

sshine
Copy link
Contributor

@sshine sshine commented Jun 27, 2019

This PR demonstrates how bin/check_optional checks 'optional' fields
in canonical-data.json. This works recursively such that 'optional'
fields in cases and in nested cases are addressed.

This PR demonstrates how `bin/check_optional` checks 'optional' fields
in canonical-data.json. This works recursively such that 'optional'
fields in cases and in nested cases are addressed.
@sshine
Copy link
Contributor Author

sshine commented Jun 27, 2019

This PR correctly fails:

$ bin/check_optional
Checking 'optional' fields in exercises/leap/canonical-data.json
Invalid optional fields:
 - medium-sized-int
 - dont-mention-the-war

Checking 'optional' fields in exercises/robot-simulator/canonical-data.json
Invalid optional fields:
 - wat
 - wat
 - sugar

Allowed optional fields (see OPTIONAL-KEYS.txt) are:
 - floating-point
 - big-integer
 - unicode

The command "bin/check_optional" exited with 1.

@sshine sshine closed this Jun 27, 2019
@sshine sshine deleted the wat-wat branch June 27, 2019 14:35
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.

1 participant