Skip to content

feat(loopDoWhile) - #90

Open
evanliomain wants to merge 2 commits into
masterfrom
feature/loop-do-while
Open

feat(loopDoWhile)#90
evanliomain wants to merge 2 commits into
masterfrom
feature/loop-do-while

Conversation

@evanliomain

Copy link
Copy Markdown
Owner

loopDoWhile perform a loop over an input until a predicate is false, performing the loop at least
once

loopDoWhile perform a loop over an input until a predicate is false, performing the loop at least
once
@coveralls

coveralls commented Oct 13, 2019

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling cd9fbf3 on feature/loop-do-while into 8e2af16 on master.

expect(loopDoWhile<number>(x => x < 10, x => x ** 2)(2)).toBe(16);
});

test('2 |> loopDoWhile <10, x => x² === 16', () => {

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Wrong title for this test case

test('2 |> loopDoWhile <10, x => x² === 16', () => {
expect(loopDoWhile<number>(x => x < 10, x => x ** 2)(10)).toBe(100);
});
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think you should add a test case with an array as input

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants