mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-11 21:58:31 +00:00
fix tests for sequence() and polyrhythm()
This commit is contained in:
parent
d3f4dcacff
commit
6f9c51db9e
@ -150,19 +150,19 @@ describe('Pattern', function() {
|
||||
assert.deepStrictEqual(fastcat("a","b","c").rev().firstCycle.sort((a,b) => a.part.begin.sub(b.part.begin)).map(a => a.value), ["c", "b","a"])
|
||||
})
|
||||
})
|
||||
// describe('sequence()', () => {
|
||||
// it('Can work like fastcat', () => {
|
||||
// assert.deepStrictEqual(sequence(1,2,3).firstCycle, fastcat([pure(1), pure(2), pure(3)]).firstCycle)
|
||||
// })
|
||||
// })
|
||||
// describe('polyrhythm()', () => {
|
||||
// it('Can layer up cycles', () => {
|
||||
// assert.deepStrictEqual(
|
||||
// polyrhythm(["a","b"],["c"])._sortEventsByPart().firstCycle,
|
||||
// stack([fastcat(pure("a"),pure("b")),pure("c")])._sortEventsByPart().firstCycle
|
||||
// )
|
||||
// })
|
||||
// })
|
||||
describe('sequence()', () => {
|
||||
it('Can work like fastcat', () => {
|
||||
assert.deepStrictEqual(sequence(1,2,3).firstCycle, fastcat(1,2,3).firstCycle)
|
||||
})
|
||||
})
|
||||
describe('polyrhythm()', () => {
|
||||
it('Can layer up cycles', () => {
|
||||
assert.deepStrictEqual(
|
||||
polyrhythm(["a","b"],["c"]).firstCycle,
|
||||
stack(fastcat(pure("a"),pure("b")),pure("c")).firstCycle
|
||||
)
|
||||
})
|
||||
})
|
||||
describe('every()', () => {
|
||||
it('Can apply a function every 3rd time', () => {
|
||||
assert.deepStrictEqual(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user