Skip to content

difference-of-squares: adjust API to use instance method [Fix #253] - #398

Merged
stkent merged 3 commits into
exercism:masterfrom
FridaTveit:DifferenceOfSquaresUseInstanceMethod
Mar 27, 2017
Merged

stkent merged 3 commits into
exercism:masterfrom
FridaTveit:DifferenceOfSquaresUseInstanceMethod

Conversation

@FridaTveit

Copy link
Copy Markdown
Contributor

Fixes issue #253.

}

public static int betweenSquareOfSumAndSumOfSquaresTo(final int input) {
public int betweenSquareOfSumAndSumOfSquaresTo(final int input) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Given the rename of the test class, maybe updating this to computeDifferenceOfSquares would be clearer and shorter now?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

True, will change it! :)

@stkent

stkent commented Mar 23, 2017

Copy link
Copy Markdown
Contributor

@FridaTveit one tiny suggestion, looks good to me otherwise!

@stkent

stkent commented Mar 27, 2017

Copy link
Copy Markdown
Contributor

Great, thanks @FridaTveit!

@stkent
stkent merged commit 6cde4a0 into exercism:master Mar 27, 2017
@FridaTveit
FridaTveit deleted the DifferenceOfSquaresUseInstanceMethod branch October 17, 2017 16:55
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