summaryrefslogtreecommitdiff
path: root/tests/features/test_fstring.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/features/test_fstring.zc
parent0bb69cb67078dfa921b5b8a42275ef31dfbc9a56 (diff)
parent489336b2101bf16edeec7bfc4379408eb19b936e (diff)
Merge branch 'main' into JsonType
# Conflicts: # examples/data/json_config.zc
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)