Skip to content

patch assert method in CalculatorTest class - #1

Open
okpoEkpenyong wants to merge 1 commit into
OpenClassrooms-Student-Center:masterfrom
okpoEkpenyong:bg-calcservrightarg
Open

patch assert method in CalculatorTest class#1
okpoEkpenyong wants to merge 1 commit into
OpenClassrooms-Student-Center:masterfrom
okpoEkpenyong:bg-calcservrightarg

Conversation

@okpoEkpenyong

@okpoEkpenyong okpoEkpenyong commented Dec 11, 2019

Copy link
Copy Markdown

What does this PR do?
This patch proposes using 'getRightArgument()' instead of 'getSolution()' in the CalculationServiceTest class.

Description of Task to be completed?
Change 'getSolution() to 'getRightArgument()' in the calculate_returnsAModelWithARightArgument_whenGivenADivisionCalculation() method of CalculationServiceTest class.

Any background context you want to provide?

  • The getSolution() method is meant to return the result of dividing Dividend(leftArgument) by Divisor(rightArgument).

  • Refer to the calculate_returnsAModelWithALeftArgument_whenGivenADivisionCalculation() method, where the right assertThat() value was passed as argment-in this case 'getLeftArgument()'

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.

1 participant