Skip to content

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

Closed
sshine wants to merge 1 commit intoexercism:masterfrom
sshine:wat-wat
Closed

WIP: Test that bin/check_optional works. (Do not merge)#1541
sshine wants to merge 1 commit intoexercism:masterfrom
sshine:wat-wat

Conversation

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