From 299ad2c9a99168a78d2d37a89f6c687cf08dc848 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 25 Oct 2025 20:12:23 -0700 Subject: [PATCH] failing test for multiline function --- src/compiler/tests/compiler.test.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/compiler/tests/compiler.test.ts b/src/compiler/tests/compiler.test.ts index 35da324..652b29c 100644 --- a/src/compiler/tests/compiler.test.ts +++ b/src/compiler/tests/compiler.test.ts @@ -85,6 +85,21 @@ describe('compiler', () => { expect(`bloop = do: 'bloop' end; bloop`).toEvaluateTo('bloop') }) + test('function call with if statement and multiple expressions', () => { + expect(` + abc = do: + if false: + echo nope + end + + true + end + + abc + `) + .toEvaluateTo(true) + }) + test('simple conditionals', () => { expect(`(3 < 6)`).toEvaluateTo(true) expect(`(10 > 20)`).toEvaluateTo(false)