Skip to content

implement calculator and write tests#297

Open
ditroRV wants to merge 3 commits into
mate-academy:masterfrom
ditroRV:my_calc
Open

implement calculator and write tests#297
ditroRV wants to merge 3 commits into
mate-academy:masterfrom
ditroRV:my_calc

Conversation

@ditroRV
Copy link
Copy Markdown

@ditroRV ditroRV commented Sep 14, 2021

No description provided.


@Test
void calculate_additionMinOperands_IsOk() {
expected = Double.MIN_VALUE + Double.MIN_VALUE;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

В цих тестах можна додати різні комбінації MIN i MAX:
MIN + MIN
MAX + MAX
MAX + MIN


@Test
void calculate_additionMinOperands_IsOk() {
expected = Double.MIN_VALUE + Double.MIN_VALUE;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

expected не повинно обраховуватись в runtime

Copy link
Copy Markdown

@denysSmeiNewBom denysSmeiNewBom left a comment

Choose a reason for hiding this comment

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

Beautiful

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