Skip to content

Commit

Permalink
issue-#43,#61 - Updated 'cycle' tests.
Browse files Browse the repository at this point in the history
- All tests green.
  • Loading branch information
elycruz committed Aug 28, 2022
1 parent 56526e6 commit 8eff8d9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/fjl/tests/list/test-cycle.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const {stringify} = JSON;
describe('#cycle', () => {
(<[Parameters<typeof cycle>, ReturnType<typeof cycle>][]>[
[[5, 'x'], 'xxxxx'],
[[5, ['x']], 'xxxxx'.split('').map(c => [c])],
[[5, ''], Array(5).fill('', 0, 5)],
[[5, []], Array(5).fill([], 0, 5)],
[[5, ['x']], 'xxxxx'.split('')],
[[5, ''], ''],
[[5, []], []],
])
.forEach(([args, expected]) => {
it(`cycle(${args.map(x => stringify(x)).join(', ')}) === ` +
Expand Down

0 comments on commit 8eff8d9

Please sign in to comment.