mirror of
https://github.com/eliasstepanik/strudel-docker.git
synced 2026-01-25 04:28:30 +00:00
Extra test for ply (and prettify)
This commit is contained in:
parent
2c224d5092
commit
87cfa30508
@ -441,7 +441,10 @@ describe('Pattern', function () {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
it('Can structure a continuous pattern', () => {
|
it('Can structure a continuous pattern', () => {
|
||||||
assert.deepStrictEqual(steady('a').struct(true, [true, true]).firstCycle(), sequence('a', ['a', 'a']).firstCycle());
|
assert.deepStrictEqual(
|
||||||
|
steady('a').struct(true, [true, true]).firstCycle(),
|
||||||
|
sequence('a', ['a', 'a']).firstCycle(),
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
describe('mask()', function () {
|
describe('mask()', function () {
|
||||||
@ -634,6 +637,10 @@ describe('Pattern', function () {
|
|||||||
sequence(pure('a').fast(3), [pure('b').fast(3), pure('c').fast(3)]).firstCycle(),
|
sequence(pure('a').fast(3), [pure('b').fast(3), pure('c').fast(3)]).firstCycle(),
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
it('Doesnt drop events in the 9th cycle', () => {
|
||||||
|
// fixed with https://github.com/tidalcycles/strudel/commit/72eeaf446e3d5e186d63cc0d2276f0723cde017a
|
||||||
|
assert.equal(sequence(1, 2, 3).ply(2).early(8).firstCycle().length, 6);
|
||||||
|
});
|
||||||
});
|
});
|
||||||
describe('chop', () => {
|
describe('chop', () => {
|
||||||
it('Can _chop(2)', () => {
|
it('Can _chop(2)', () => {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user