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/modules | |
| parent | 863118c95caac0d69a35f6ae4d2e83844734a8a1 (diff) | |
| parent | 489336b2101bf16edeec7bfc4379408eb19b936e (diff) | |
Merge branch 'main' into pr-109
Diffstat (limited to 'tests/modules')
| -rw-r--r-- | tests/modules/test_aliasing.zc | 4 | ||||
| -rw-r--r-- | tests/modules/test_namespaced.zc | 8 |
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"); |
