diff options
| author | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
|---|---|---|
| committer | SAJJA EASWAR <eshwarsajja20@gmail.com> | 2026-01-25 22:59:36 +0530 |
| commit | ebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch) | |
| tree | 71b952ad455bf17d5bdea01472f0e2297f25eabe /tests/basic/test_basics.zc | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/basic/test_basics.zc')
| -rw-r--r-- | tests/basic/test_basics.zc | 10 |
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!"; } |
