jetzt funktionierts
This commit is contained in:
1 parent
bb785bb25c
commit
71c9eb485b
2 files changed
+30
-2
No files matched your search
@@ -0,0 +1,23 @@
|
||||
from matrixmania.compute import project_ortho
|
||||
|
||||
def test_project_ortho_ohneSkalierung():
|
||||
# Arrange
|
||||
point =(1, 2, 3)
|
||||
expected = (1, 2)
|
||||
|
||||
#Act
|
||||
result = project_ortho(point)
|
||||
|
||||
#Assert
|
||||
assert result == expected
|
||||
def test_project_ortho_mitskalierung():
|
||||
#Arrange
|
||||
point = (1, 2, 3)
|
||||
scale = 100
|
||||
expected =(100, 200)
|
||||
|
||||
#Act
|
||||
result = project_ortho(point, scale)
|
||||
|
||||
#Assert
|
||||
assert result == expected
|
||||
Reference in new issue
Block a user