mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-21 20:55:12 -04:00
actually apply the function in every
This commit is contained in:
@@ -163,12 +163,12 @@ describe('Pattern', function() {
|
||||
// )
|
||||
// })
|
||||
// })
|
||||
// describe('every()', () => {
|
||||
// it('Can apply a function every 3rd time', () => {
|
||||
// assert.deepStrictEqual(
|
||||
// pure("a").every(3, x => x._fast(2)._fast(3)).firstCycle,
|
||||
// sequence(sequence("a", "a"), "a", "a").firstCycle
|
||||
// )
|
||||
// })
|
||||
// })
|
||||
describe('every()', () => {
|
||||
it('Can apply a function every 3rd time', () => {
|
||||
assert.deepStrictEqual(
|
||||
pure("a").every(3, x => x._fast(2))._fast(3).firstCycle,
|
||||
sequence(sequence("a", "a"), "a", "a").firstCycle
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user