From 87cfa305084705d215957fbfd70bf5738fa76d68 Mon Sep 17 00:00:00 2001 From: alex Date: Fri, 22 Apr 2022 11:51:41 +0100 Subject: [PATCH] Extra test for ply (and prettify) --- packages/core/test/pattern.test.mjs | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/core/test/pattern.test.mjs b/packages/core/test/pattern.test.mjs index f2b255d2..b4989b71 100644 --- a/packages/core/test/pattern.test.mjs +++ b/packages/core/test/pattern.test.mjs @@ -441,7 +441,10 @@ describe('Pattern', function () { ); }); 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 () { @@ -634,6 +637,10 @@ describe('Pattern', function () { 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', () => { it('Can _chop(2)', () => {