summaryrefslogtreecommitdiff
path: root/tests/basic/test_basics.zc
diff options
context:
space:
mode:
authorsuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
committersuresh <sureshkrishnan.ai@gmail.com>2026-01-25 11:43:23 -0500
commit26a0b55ed5bce4ad0ba2af109cfc96da7be2e34c (patch)
tree35ba8d7742b8ac727bfc6c4c73ab8b70f6eedb53 /tests/basic/test_basics.zc
parent0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into JsonType
# Conflicts: # examples/data/json_config.zc
Diffstat (limited to 'tests/basic/test_basics.zc')
-rw-r--r--tests/basic/test_basics.zc10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/basic/test_basics.zc b/tests/basic/test_basics.zc
index 57dbb4e..8cc2e6b 100644
--- a/tests/basic/test_basics.zc
+++ b/tests/basic/test_basics.zc
@@ -4,8 +4,8 @@ test "test_hello" {
}
test "test_vars" {
- var x = 10;
- var y: int = 20;
+ let x = 10;
+ let y: int = 20;
println "Sum: {x + y}";
}
@@ -14,11 +14,11 @@ fn take_const_arg(x: const int) -> int {
}
test "test_const_args" {
- var x = take_const_arg(10);
+ let x = take_const_arg(10);
assert(x == 10, "Failed const arg");
- var y: const int = 20;
- assert(y == 20, "Failed const var");
+ let y: const int = 20;
+ assert(y == 20, "Failed const let");
println "Const args work!";
}