Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests are added #625

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

KseniiaKrytska
Copy link

No description provided.

Kseniia Krytska added 2 commits November 24, 2024 14:46
Copy link

@Viktoriia-V-V Viktoriia-V-V left a comment

Choose a reason for hiding this comment

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

In general, it looks good. I would remove two tests (for negative values and for thousands). But it is a good job

test('should return both 0 for both minus numbers', () => {
expect(getHumanAge(-1, -1)).toEqual([0, 0]);
});

Choose a reason for hiding this comment

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

let's not use negative values

expect(getHumanAge(99, 104)).toEqual([20, 18]);
});

test('should work correct with thousands', () => {

Choose a reason for hiding this comment

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

I think there is no need to check thousands

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