mondo: fix combination of | and ,

This commit is contained in:
Felix Roos 2025-03-21 22:34:53 +01:00
parent 6fd89ddee7
commit bd93e44154
No known key found for this signature in database
2 changed files with 21 additions and 18 deletions

View file

@ -90,6 +90,9 @@ describe('mondo sugar', () => {
it('should desugar . ()', () => expect(desguar('[jazz hh.(fast 2)]')).toEqual('(square jazz (fast hh 2))'));
it('should desugar , |', () => expect(desguar('[bd, hh | oh]')).toEqual('(stack bd (or hh oh))'));
it('should desugar , | of []', () =>
expect(desguar('[bd, hh | [oh rim]]')).toEqual('(stack bd (or hh (square oh rim)))'));
it('should desugar , square', () => expect(desguar('[bd, hh]')).toEqual('(stack bd hh)'));
it('should desugar , square 2', () => expect(desguar('[bd, hh oh]')).toEqual('(stack bd (square hh oh))'));
it('should desugar , square 3', () =>