Add rotation and projection tests
This commit is contained in:
1 parent
f1861b4a39
commit
9aa475906e
9 files changed
+356
-148
No files matched your search
@@ -0,0 +1,26 @@
|
||||
|
||||
from matrixmania.compute import project_ortho
|
||||
|
||||
|
||||
def test_project_ortho_default():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
expected = (1.0, 2.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point)
|
||||
|
||||
# Assert
|
||||
assert result == expected
|
||||
|
||||
|
||||
def test_project_ortho_scale_100():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
expected = (100.0, 200.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point, scale=100)
|
||||
|
||||
# Assert
|
||||
assert result == expected
|
||||
Reference in new issue
Block a user