Support for multiple mininotation operators WIP (#350)

* support for multiple operators
* fix false test failures by sorting by part
* snapshot
This commit is contained in:
Alex McLean 2023-01-09 22:23:27 +00:00 committed by GitHub
parent 45842b1f05
commit f57fe182ed
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 503 additions and 493 deletions

View file

@ -9,8 +9,8 @@ import '@strudel.cycles/core/euclid.mjs';
import { describe, expect, it } from 'vitest';
describe('mini', () => {
const minV = (v) => mini(v).firstCycleValues;
const minS = (v) => mini(v).showFirstCycle;
const minV = (v) => mini(v).sortHapsByPart().firstCycleValues;
const minS = (v) => mini(v).sortHapsByPart().showFirstCycle;
it('supports single elements', () => {
expect(minV('a')).toEqual(['a']);
});