From 0d8786ebff715c3250cfd8cb932e0432caa02d09 Mon Sep 17 00:00:00 2001 From: Shautvast Date: Mon, 17 Nov 2025 07:13:50 +0100 Subject: [PATCH] test indicating that 'if' is not working correctly --- src/compiler_tests.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiler_tests.rs b/src/compiler_tests.rs index efdabe6..87915d8 100644 --- a/src/compiler_tests.rs +++ b/src/compiler_tests.rs @@ -342,8 +342,12 @@ a=2"#), fn simple_if_expr() { assert_eq!( run(r#" +let a = 2 +let b = 3 if true: - 2 + a +else: + b "#), Ok(Value::I64(2)) );