Start mapping notes! Spheres and some lines
This commit is contained in:
@@ -2,6 +2,9 @@ from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
from model.dancerush import DRSTrackStepPositionInfo
|
||||
from model.dancerush import MAX_POS
|
||||
from model.dancerush import MIN_POS
|
||||
from model.dancerush import safe_int
|
||||
|
||||
|
||||
@@ -17,3 +20,16 @@ from model.dancerush import safe_int
|
||||
)
|
||||
def test_safe_int(input_value, expected_output):
|
||||
assert safe_int(input_value) == expected_output
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
'input_values, expected_output', [
|
||||
((MIN_POS, MIN_POS), 1),
|
||||
((MAX_POS/2, MAX_POS/2), 5),
|
||||
((MAX_POS, MAX_POS), 9),
|
||||
],
|
||||
)
|
||||
def test_DRSTrackStepPositionInfo_to_dance_dance_x(input_values, expected_output):
|
||||
left_pos, right_pos = input_values
|
||||
track_info = DRSTrackStepPositionInfo(left_pos, right_pos)
|
||||
assert track_info.to_dance_dash_x == expected_output
|
||||
|
||||
Reference in New Issue
Block a user