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

Difference of squares: sync expected test results and input data with problem-specifications #1791

Merged
merged 6 commits into from
May 31, 2019

Conversation

BethanyG
Copy link
Member

Part of #1762

  • Changed function name to difference_of_squares in test cases, exercise stub, and example.py to conform with canonical-data.json.
  • Changed example.py to use the formulas from https://brilliant.org/wiki/sum-of-n-n2-or-n3/, rather than loops.
  • Changed argument name in example.py and exercise stub to number from count.

@BethanyG BethanyG requested a review from a team as a code owner May 25, 2019 18:46
@@ -1,6 +1,7 @@
import unittest

from difference_of_squares import difference, square_of_sum, sum_of_squares
from difference_of_squares import difference_of_squares, \
square_of_sum, sum_of_squares
Copy link
Contributor

Choose a reason for hiding this comment

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

It is preferable to use parenthesis instead of backslashes for multiline imports. Example:

from difference_of_squares import (
	difference_of_squares,
	square_of_sum,
	sum_of_squares,
)

Copy link
Member Author

Choose a reason for hiding this comment

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

Ooops. I did not see this, or I wouldn't have closed this and deleted the branch. I am an idiot. :P Will re-open and correct!

@BethanyG BethanyG closed this May 29, 2019
@BethanyG BethanyG deleted the difference-of-squares-changes branch May 29, 2019 06:25
@BethanyG BethanyG restored the difference-of-squares-changes branch May 30, 2019 16:23
@BethanyG BethanyG reopened this May 30, 2019
Copy link
Contributor

@cmccandless cmccandless left a comment

Choose a reason for hiding this comment

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

Minor nitpick.

@cmccandless cmccandless merged commit 140f012 into exercism:master May 31, 2019
@cmccandless
Copy link
Contributor

Merged; thanks for working on this!

@BethanyG BethanyG deleted the difference-of-squares-changes branch January 29, 2021 17:54
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