install_dependencies.py, test_projection.py, test_rot.py hinzugefügt, compute.py und pyproject.toml modified
This commit is contained in:
1 parent
bdbf024154
commit
806434d813
5 files changed
+255
-80
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import pytest
|
||||
from compute import project_ortho
|
||||
|
||||
|
||||
def test_project_ortho_default_scale():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
|
||||
# Act
|
||||
result = project_ortho(point)
|
||||
|
||||
# Assert
|
||||
assert result == (1.0, 2.0)
|
||||
|
||||
|
||||
def test_project_ortho_scale_100():
|
||||
# Arrange
|
||||
point = (1.0, 2.0, 3.0)
|
||||
scale = 100.0
|
||||
|
||||
# Act
|
||||
result = project_ortho(point, scale)
|
||||
|
||||
# Assert
|
||||
assert result == (100.0, 200.0)
|
||||
Reference in new issue
Block a user