Working squeezeBind
This commit is contained in:
parent
357b0ee467
commit
c2cc6b6dc8
2 changed files with 17 additions and 6 deletions
|
|
@ -33,6 +33,7 @@ import {
|
|||
square2,
|
||||
tri,
|
||||
tri2,
|
||||
id,
|
||||
} from '../strudel.mjs';
|
||||
//import { Time } from 'tone';
|
||||
import pkg from 'tone';
|
||||
|
|
@ -489,4 +490,12 @@ describe('Pattern', function() {
|
|||
)
|
||||
})
|
||||
})
|
||||
describe("squeezeJoin", () => {
|
||||
it("Can squeeze", () => {
|
||||
assert.deepStrictEqual(
|
||||
sequence("a", ["a","a"]).fmap(a => fastcat("b", "c")).squeezeJoin().firstCycle(),
|
||||
sequence(["b", "c"],[["b", "c"],["b", "c"]]).firstCycle()
|
||||
)
|
||||
})
|
||||
})
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue