summaryrefslogtreecommitdiff
path: root/tests/control_flow/test_if.zc
diff options
context:
space:
mode:
authorZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
committerZuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian>2026-01-25 15:12:12 +0000
commit7d1944ab9d2307f2736afe8520436872db1c7617 (patch)
tree7380a4f148f9ce0b70ed9f02cfa5e8561c783a7a /tests/control_flow/test_if.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/control_flow/test_if.zc')
-rw-r--r--tests/control_flow/test_if.zc6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/control_flow/test_if.zc b/tests/control_flow/test_if.zc
index 463405a..ed0f43d 100644
--- a/tests/control_flow/test_if.zc
+++ b/tests/control_flow/test_if.zc
@@ -1,10 +1,10 @@
test "test_if" {
- var x = 10;
+ let x = 10;
if (x > 5) {
printf("X is big\n");
- var y = x * 2;
+ let y = x * 2;
if (y > 15) {
printf("Y is very big\n");
}
@@ -12,7 +12,7 @@ test "test_if" {
printf("X is small\n");
}
- var i = 0;
+ let i = 0;
while (i < 3) {
println "Loop {i}";
i++;