Working squeezeBind

This commit is contained in:
alex 2022-04-12 11:22:53 +01:00
parent 357b0ee467
commit c2cc6b6dc8
2 changed files with 17 additions and 6 deletions

View file

@ -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()
)
})
})
})