summaryrefslogtreecommitdiff
path: root/tests/features/test_fstring.zc
diff options
context:
space:
mode:
authorSAJJA EASWAR <eshwarsajja20@gmail.com>2026-01-25 22:59:36 +0530
committerSAJJA EASWAR <eshwarsajja20@gmail.com>2026-01-25 22:59:36 +0530
commitebc8b94baa6bc694cb4829e2eb2934a1f17fa6a1 (patch)
tree71b952ad455bf17d5bdea01472f0e2297f25eabe /tests/features/test_fstring.zc
parent863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/features/test_fstring.zc')
-rw-r--r--tests/features/test_fstring.zc4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/features/test_fstring.zc b/tests/features/test_fstring.zc
index b2a8f36..cb46cda 100644
--- a/tests/features/test_fstring.zc
+++ b/tests/features/test_fstring.zc
@@ -2,7 +2,7 @@ import "tests/features/_fstring_mod.zc" as Mod;
test "alias namespace fstring" {
// Tests that {Mod::get_val()} is parsed correctly (Mod_get_val)
- var res = f"{Mod::get_val()}";
+ let res = f"{Mod::get_val()}";
assert(res == "42", "Import namespace in f-string failed");
// Check local string formatting via println (compile check)
@@ -15,7 +15,7 @@ test "alias C header fstring" {
// Tests that {Lib::lib_val()} resolves to lib_val() (no mangling/prefix)
// parser_expr.c strips alias for C headers.
// parser_utils.c rewrite_expr_methods needs to do the same.
- var res = f"{Lib::lib_val()}";
+ let res = f"{Lib::lib_val()}";
assert(res == "99", "C header namespace in f-string failed");
// Verify println (rewrite_expr_methods path)