mirror of
https://codeberg.org/uzu/strudel
synced 2026-07-13 06:19:33 -04:00
slowcat test
This commit is contained in:
@@ -109,4 +109,10 @@ describe('Pattern', function() {
|
||||
assert.deepStrictEqual(fastcat([pure("a"), pure("b")]).firstCycle.map(x => x.value), ["a", "b"])
|
||||
})
|
||||
})
|
||||
describe('slowcat()', function () {
|
||||
it('Can concatenate things slowly', function () {
|
||||
assert.deepStrictEqual(slowcat([pure("a"), pure("b")]).firstCycle.map(x => x.value), ["a"])
|
||||
assert.deepStrictEqual(slowcat([pure("a"), pure("b")])._early(1).firstCycle.map(x => x.value), ["b"])
|
||||
})
|
||||
})
|
||||
})
|
||||
Reference in New Issue
Block a user