pass all the args through patternify, to properly support sequences as args
This commit is contained in:
parent
89ee94e953
commit
d6c22d516b
2 changed files with 14 additions and 8 deletions
|
|
@ -98,6 +98,12 @@ describe('Pattern', function() {
|
|||
// .fast(sequence(1,silence) is a quick hack to cut an event in two..
|
||||
assert.deepStrictEqual(pure("a").fast(sequence(1,4)).firstCycle, stack(pure("a").fast(sequence(1,silence)), sequence(silence, ["a","a"])).firstCycle)
|
||||
})
|
||||
it('defaults to accepting sequences', function () {
|
||||
assert.deepStrictEqual(
|
||||
sequence(1,2,3).fast(sequence(1.5,2)).firstCycle,
|
||||
sequence(1,2,3).fast(1.5,2).firstCycle
|
||||
)
|
||||
})
|
||||
})
|
||||
describe('_slow()', function () {
|
||||
it('Makes things slower', function () {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue