summaryrefslogtreecommitdiff
path: root/tests/features/test_fstring.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/features/test_fstring.zc
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
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)