Skip to content

Commit

Permalink
Add test: supports block expressions as function arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
inthar-raven committed Jun 17, 2024
1 parent 4efd04c commit 976d4bc
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions src/parser/__tests__/source.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
});
});

0 comments on commit 976d4bc

Please sign in to comment.