sixth commit: test added
This commit is contained in:
1 parent
b649addb49
commit
e6d4274525
4 files changed
+90
-1
No files matched your search
@@ -0,0 +1,21 @@
|
||||
from matrixmania import project_ortho
|
||||
|
||||
|
||||
def test_projection_point():
|
||||
#Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
expected_value = (1.0, 2.0)
|
||||
|
||||
#Act
|
||||
result = project_ortho(point)
|
||||
|
||||
#Assert
|
||||
assert result == expected_value
|
||||
|
||||
def test_projection_scale():
|
||||
point = (1.0, 2.0, 3.0)
|
||||
scale = 100
|
||||
expected_value = (100.0, 200.0)
|
||||
|
||||
result = project_ortho(point, scale)
|
||||
assert result == expected_value
|
||||
Reference in new issue
Block a user