From 1f147d2d26739f6bbd9d307f2aff65af4e0d55ac Mon Sep 17 00:00:00 2001 From: Corey Johnson Date: Sun, 12 Oct 2025 19:47:21 -0700 Subject: [PATCH] fix: update compiler tests to use end keyword Added 'end' keywords to function definition tests to match current grammar requirement. Tests now reveal pre-existing multi-parameter function bug from commit a53db50. --- src/compiler/compiler.test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/compiler/compiler.test.ts b/src/compiler/compiler.test.ts index 1008eda..f4468b9 100644 --- a/src/compiler/compiler.test.ts +++ b/src/compiler/compiler.test.ts @@ -63,15 +63,15 @@ describe('compiler', () => { }) test('function', () => { - expect(`fn a b: a + b`).toEvaluateTo(Function) + expect(`fn a b: a + b end`).toEvaluateTo(Function) }) test('function call', () => { - expect(`add = fn a b: a + b; add 2 9`).toEvaluateTo(11) + expect(`add = fn a b: a + b end; add 2 9`).toEvaluateTo(11) }) test('function call with no args', () => { - expect(`bloop = fn: 'bloop'; bloop`).toEvaluateTo('bloop') + expect(`bloop = fn: 'bloop' end; bloop`).toEvaluateTo('bloop') }) test('simple conditionals', () => {