Praktikum 3: Post Tests

This commit is contained in:
stephanja102868 committed 2026-10-22 13:34:09 +02:00
1 parent a2f6206bba
commit 10e0bd9557
5 files changed
+383 -1

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
from src.compute import project_ortho
def test_ortho_1():
point = (1.0, 2.0, 3.0)
exp_point = (1.0, 2.0)
result = project_ortho(point)
assert result == exp_point
def test_ortho_2():
point = (1.0, 2.0, 3.0)
exp_point = (100.0, 200.0)
result = project_ortho(point, 100)
assert result == exp_point