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

[sum-of-multiples] update tests to match common test data #125

Merged
merged 3 commits into from
Aug 14, 2016

Conversation

NobbZ
Copy link
Member

@NobbZ NobbZ commented Aug 14, 2016

NobbZ added 2 commits August 14, 2016 10:01
This exercise has got common testdata quite a while ago. This commit
implements that common testdata in the most recent version.

It does not use a generator though.
Due to the changes in the test suite, there was an unused functionclause
left in the examples, which gets removed by this commit.
@@ -5,7 +5,6 @@
([n d] (zero? (rem n d))))

(defn sum-of-multiples
([n] (sum-of-multiples [3 5] n))
([multiples n]
Copy link
Member

Choose a reason for hiding this comment

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

This can/should be refactored into a "simple function," as in without the polyadic clause.

Copy link
Member Author

Choose a reason for hiding this comment

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

I updated the PR.

Before it was a multi-clause function with a single clause.
@yurrriq
Copy link
Member

yurrriq commented Aug 14, 2016

LGTM. Thanks!

@yurrriq yurrriq merged commit 855236a into exercism:master Aug 14, 2016
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