Skip to content

pythagorean-triplet 1.0.0.3: Test only tripletsWithSum #753

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

Merged
merged 2 commits into from
Oct 31, 2018
Merged

pythagorean-triplet 1.0.0.3: Test only tripletsWithSum #753

merged 2 commits into from
Oct 31, 2018

Conversation

petertseng
Copy link
Member

Replacing previous tests with isPythagorean (don't test intermediate
steps) and triplets in factor range (reasonable way to test, just not
what the canonical data chose to use)

Given the new restriction of a < b < c we no longer need mkTriplet
according to the previous rationale for keeping it (ordering):
#507 (comment)

exercism/problem-specifications#1332
exercism/problem-specifications#1365

TheBestJohn and others added 2 commits October 31, 2018 01:34
Replacing previous tests with isPythagorean (don't test intermediate
steps) and triplets in factor range (reasonable way to test, just not
what the canonical data chose to use)

Given the new restriction of `a < b < c` we no longer need `mkTriplet`
according to the previous rationale for keeping it (ordering):
#507 (comment)

exercism/problem-specifications#1332
@petertseng petertseng merged commit 7ac5b77 into exercism:master Oct 31, 2018
@petertseng petertseng deleted the pythag branch October 31, 2018 02:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants