From 976d4bc8ea9a4202b25ea27dea23133314f3fd01 Mon Sep 17 00:00:00 2001 From: inthar-raven Date: Mon, 17 Jun 2024 16:43:26 -0400 Subject: [PATCH] Add test: supports block expressions as function arguments --- src/parser/__tests__/source.spec.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/parser/__tests__/source.spec.ts b/src/parser/__tests__/source.spec.ts index e4e7c89e..c5ed1e0e 100644 --- a/src/parser/__tests__/source.spec.ts +++ b/src/parser/__tests__/source.spec.ts @@ -2046,4 +2046,19 @@ describe('SonicWeave parser', () => { `); expect(scale).toEqual(['10', '20', '30']); }); + + it('supports block expressions as function arguments', () => { + const truth = expand(` + hasConstantStructure({ + 9/8 + 81/64 + 4/3 + 3/2 + 27/16 + 243/128 + 2/1 + }) + `); + expect(truth).toEqual(expand('true')); + }); });