16 lines
422 B
Python
16 lines
422 B
Python
import pytest
|
|
from matrixmania.compute import project_ortho
|
|
|
|
|
|
def test_project_ortho_default_scale():
|
|
# Test ohne Angabe von scale (Standardwert = 1)
|
|
point = (1.0, 2.0, 3.0)
|
|
result = project_ortho(point)
|
|
assert result == (1.0, 2.0)
|
|
|
|
|
|
def test_project_ortho_with_scale():
|
|
# Test mit scale = 100
|
|
point = (1.0, 2.0, 3.0)
|
|
result = project_ortho(point, scale=100)
|
|
assert result == (100.0, 200.0) |