summaryrefslogtreecommitdiff
path: root/tests/modules
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/modules
parent8b720543f538862796fec0ff6b7ea12cb140bf0f (diff)
'let' it be
Diffstat (limited to 'tests/modules')
-rw-r--r--tests/modules/test_aliasing.zc4
-rw-r--r--tests/modules/test_namespaced.zc8
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/modules/test_aliasing.zc b/tests/modules/test_aliasing.zc
index 468e558..ba8f759 100644
--- a/tests/modules/test_aliasing.zc
+++ b/tests/modules/test_aliasing.zc
@@ -3,8 +3,8 @@ import { Vector as MathVec } from "./test_modules/_math.zc";
import { Vector as PhysicsVec } from "./test_modules/_physics.zc";
test "test_selective_aliasing" {
- var mv = MathVec::new(3, 4);
- var pv = PhysicsVec::new(5.0, 12.0);
+ let mv = MathVec::new(3, 4);
+ let pv = PhysicsVec::new(5.0, 12.0);
assert(mv.x == 3 && mv.y == 4, "MathVec initialization failed");
assert(pv.vx == 5.0 && pv.vy == 12.0, "PhysicsVec initialization failed");
diff --git a/tests/modules/test_namespaced.zc b/tests/modules/test_namespaced.zc
index afc1d6c..67db941 100644
--- a/tests/modules/test_namespaced.zc
+++ b/tests/modules/test_namespaced.zc
@@ -3,11 +3,11 @@ import "./test_modules/_math.zc" as math;
import "./test_modules/_physics.zc" as physics;
test "test_namespaced_imports" {
- var mv = math::Vector::new(3, 4);
- var pv = physics::Vector::new(5.0, 12.0);
+ let mv = math::Vector::new(3, 4);
+ let pv = physics::Vector::new(5.0, 12.0);
- var len1 = math::Vector::length(&mv);
- var len2 = physics::Vector::magnitude(&pv);
+ let len1 = math::Vector::length(&mv);
+ let len2 = physics::Vector::magnitude(&pv);
assert(len1 == 5, "Math vector length failed");
assert(len2 == 13.0, "Physics vector magnitude failed");