Skip to content

difference-of-squares: improve test names #753

Closed

Description

@FridaTveit

In DifferenceOfSquaresCalculatorTest all the test names are of the form testSquareOfSum1 and testSumOfSquares5. These names would be more readable as testSquareOfSumUpToOne and testSumOfSquaresUpToFive.

Having the number spelled out doesn't matter too much. I think it makes it a bit more readable, but that's just my opinion :) Adding UpTo definitely makes it more clear what the test is testing though so that's the most important change.

Activity

  1. balachandarsv commented on Sep 28, 2017

    @balachandarsv
    Contributor

    May I take this up? @FridaTveit

  2. FridaTveit commented on Sep 28, 2017

    @FridaTveit
    ContributorAuthor

    Sure, go for it @balachandarsv! :)

  3. added a commit that references this issue on Sep 28, 2017
  4. added a commit that references this issue on Sep 28, 2017
  5. FridaTveit commented on Sep 28, 2017

    @FridaTveit
    ContributorAuthor

    Fixed by PR #794, thanks @balachandarsv! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions