Files
MatrixMania/test/test_matrixmania/test_projection.py
T
2026-10-27 12:13:33 +01:00

22 lines
423 B
Python

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