File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -239,7 +239,7 @@ def test_valid_ink_trajectory(
239239 assert result_start == expected_start , f"Start index mismatch for { test_id } "
240240 assert result_end == expected_end , f"End index mismatch for { test_id } "
241241
242-
242+
243243def test_uniform_motion () -> None :
244244 """Test with points moving at constant velocity."""
245245 points = pd .DataFrame ({
@@ -251,6 +251,10 @@ def test_uniform_motion() -> None:
251251 start_label = "1" ,
252252 end_label = "2" ,
253253 points = points ,
254+ is_error = False ,
255+ line_number = 1 ,
256+ )
257+
254258 segment .calculate_velocity_metrics (points )
255259
256260 assert segment .distance == pytest .approx (3.0 )
@@ -292,7 +296,7 @@ def test_accelerating_motion() -> None:
292296
293297
294298def test_velocity_two_points_only () -> None :
295- """Test velocity calculation with only two points (one velocity, no acceleration) ."""
299+ """Test velocity calculation with only two points."""
296300 points = pd .DataFrame ({
297301 "x" : [0 , 3 ],
298302 "y" : [0 , 4 ],
@@ -369,4 +373,3 @@ def test_stationary_motion() -> None:
369373 assert all (v == pytest .approx (0.0 ) for v in segment .velocities )
370374 assert len (segment .accelerations ) == 1
371375 assert segment .accelerations [0 ] == pytest .approx (0.0 )
372-
You can’t perform that action at this time.
0 commit comments