simplify mondo: ":" is just another operator

This commit is contained in:
Felix Roos 2025-03-20 09:09:29 +01:00
parent e04f250adb
commit 208706fb52
No known key found for this signature in database
2 changed files with 8 additions and 35 deletions

View file

@ -101,6 +101,7 @@ describe('mondo sugar', () => {
it('should desugar []*x', () => expect(desguar('[a [b c]*3]')).toEqual('(seq a (* (seq b c) 3))'));
it('should desugar x:y', () => expect(desguar('x:y')).toEqual('(: x y)'));
it('should desugar x:y:z', () => expect(desguar('x:y:z')).toEqual('(: (: x y) z)'));
it('should desugar x:y*x', () => expect(desguar('bd:0*2')).toEqual('(* (: bd 0) 2)'));
it('should desugar README example', () =>
expect(desguar('s [bd hh*2 cp.(crush 4) <mt ht lt>] . speed .8')).toEqual(