Failing test for when
This commit is contained in:
parent
abe6509ba8
commit
fff10f43bd
1 changed files with 6 additions and 0 deletions
|
|
@ -178,6 +178,12 @@ describe('Pattern', function() {
|
|||
it('Never faster', function () {
|
||||
assert.equal(pure("a").when(pure(false), x => x._fast(2)).firstCycle.length, 1)
|
||||
})
|
||||
it('Can alternate', function () {
|
||||
assert.deepStrictEqual(
|
||||
pure(10).when(slowcat(true,false),add(3)).fast(4).firstCycle,
|
||||
slowcat(10,13,10,10).firstCycle
|
||||
)
|
||||
})
|
||||
})
|
||||
describe('fastcat()', function () {
|
||||
it('Can concatenate two things', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue