Skip to content
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

sieve: add generator #962

Merged
merged 2 commits into from
Nov 17, 2017
Merged

Conversation

leenipper
Copy link
Contributor

Add .meta/gen.go to generate cases_test.go.

Update test program to use generated test case array.

Update example solution to pass test which includes limit as prime.

For #605.

Add .meta/gen.go to generate cases_test.go.

Update test program to use generated test case array.

Update example solution to pass test which includes limit as prime.

For exercism#605.
Copy link
Contributor

@ferhatelmas ferhatelmas left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM


// The JSON structure we expect to be able to unmarshal into
type js struct {
Cases []OneCase
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Might inline since we're not adding methods to type, etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

Replace OneCase with inline struct
since no methods are necessary.
@leenipper leenipper merged commit 69bf90e into exercism:master Nov 17, 2017
@leenipper leenipper deleted the sieve-add-generator branch December 8, 2017 18:27
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