Skip to content

implemented lambda calculator#282

Open
SergiiLonskyi wants to merge 2 commits into
mate-academy:masterfrom
SergiiLonskyi:hw-lamda-calc-sl
Open

implemented lambda calculator#282
SergiiLonskyi wants to merge 2 commits into
mate-academy:masterfrom
SergiiLonskyi:hw-lamda-calc-sl

Conversation

@SergiiLonskyi
Copy link
Copy Markdown

No description provided.

+ " subtraction doesn't work correctly";
private static final String ADDITION_OPERATION_MESSAGE = "Oops, operation of"
+ " addition doesn't work correctly";

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Constants should be first

assertEquals(actual,expected, DELTA, DIVISION_OPERATION_MESSAGE);
assertThrows(ArithmeticException.class, () -> calculator.calculate(100.55,0,'/'));
assertThrows(ArithmeticException.class, () -> calculator.calculate(0,0,'/'));
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

add another test when secondNum = 0

Copy link
Copy Markdown

@RostyslavF5R RostyslavF5R Sep 13, 2021

Choose a reason for hiding this comment

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

and implement assertThrows there

Copy link
Copy Markdown

@MaliukDaria MaliukDaria left a comment

Choose a reason for hiding this comment

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

👍🏻

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.

3 participants