Praktikum 3: Post Tests
This commit is contained in:
1 parent
a2f6206bba
commit
10e0bd9557
5 files changed
+383
-1
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user