From eacf9771c53f75a2b4ebe91070a32d5e9a73e524 Mon Sep 17 00:00:00 2001 From: Nic Gaffney Date: Tue, 18 Feb 2025 17:42:47 -0600 Subject: Small updates, tests fail --- examples/mathTest.nya | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'examples/mathTest.nya') diff --git a/examples/mathTest.nya b/examples/mathTest.nya index f937b79..14e7f0a 100644 --- a/examples/mathTest.nya +++ b/examples/mathTest.nya @@ -6,13 +6,13 @@ fn test() -> i32 { } fn main() -> i32 { - const: i32 num = 5; + const: i32 num = 5 + 3 * 7; const: i32 num2 = test(); - if (num2 == test()) { + if (num2 == test()) puts("Hello World!"); - } - if (num2 == 0) { + + if (num2 == 0) puts("Shouldn't print"); - } - return num2; + + return num; } -- cgit v1.2.3