-
-
Notifications
You must be signed in to change notification settings - Fork 657
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
custom-set: ensure generator is up-to-date #629
Labels
Comments
leenipper
added a commit
to leenipper/xgo
that referenced
this issue
Apr 22, 2017
For issue exercism#629. Use .Header in generator template. Align template with latest canonical-data.json. Use a OneCase struct type to contain the whole set of possible json objects for the various test groups. Add istrSlice as conversion helper for .Expected. Rework each define & template call to also generate the var for the test cases. Use .GroupComment helper function to output the description for the test case group. Use dict helper function to pass multiple parameters to a template. Update test program to change hasCases => containsCases, and eqCases => equalCases; the new templates output each test case array var from within the template and simply prepend the property to "Cases" for the variable name.
leenipper
added a commit
that referenced
this issue
Apr 23, 2017
* custom-set: update generator For issue #629. Use .Header in generator template. Align template with latest canonical-data.json. Use a OneCase struct type to contain the whole set of possible json objects for the various test groups. Add istrSlice as conversion helper for .Expected. Rework each define & template call to also generate the var for the test cases. Use .GroupComment helper function to output the description for the test case group. Use dict helper function to pass multiple parameters to a template. Update test program to change hasCases => containsCases, and eqCases => equalCases; the new templates output each test case array var from within the template and simply prepend the property to "Cases" for the variable name.
Closed by #622 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Parent issue: #604
Because of recent changes to make all the canonical-data.json files conform to
a common scheme (exercism/problem-specifications#625), it might be
the case that our current generator no longer runs.
For this exercise we need to make sure the current generator runs, and if it
doesn't then we need to update it.
In addition, the three lines at the top of the file:
can simply be replaced with
{{.Header}}
, which has the effect of:Ori
field, which is confusingly namedThe text was updated successfully, but these errors were encountered: