diff options
| author | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-22 22:56:40 +0000 |
|---|---|---|
| committer | Zuhaitz Méndez Fernández de Aránguiz <zuhaitz@debian> | 2026-01-22 22:56:40 +0000 |
| commit | 5d31f28bedc3d045f01f390245b5afbbb316e414 (patch) | |
| tree | b6f6e8a6c027931b34b7db2435d6f462f4984373 /tests/modules/test_modules/physics.zc | |
| parent | ed4bbfd8cf4a72fdf4a5d6cba94d537cab340356 (diff) | |
Fix for #91
Diffstat (limited to 'tests/modules/test_modules/physics.zc')
| -rw-r--r-- | tests/modules/test_modules/physics.zc | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/tests/modules/test_modules/physics.zc b/tests/modules/test_modules/physics.zc deleted file mode 100644 index ee56f7e..0000000 --- a/tests/modules/test_modules/physics.zc +++ /dev/null @@ -1,17 +0,0 @@ - -struct Vector { - vx: double; - vy: double; -} - -impl Vector { - fn new(vx: double, vy: double) -> Vector { - return Vector { vx: vx, vy: vy }; - } - - fn magnitude(self) -> double { - // sqrt(5^2 + 12^2) = 13 - if (self.vx == 5.0 && self.vy == 12.0) return 13.0; - return 0.0; - } -} |
