From bfa581dfe7735a79f9281e013e74e7aa96cf2bbb Mon Sep 17 00:00:00 2001 From: tligui_y Date: Sun, 10 Aug 2025 23:15:59 +0200 Subject: [PATCH] Update tests/test_utils_npy.py --- tests/test_utils_npy.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_utils_npy.py b/tests/test_utils_npy.py index 9ba92797b..15732287a 100644 --- a/tests/test_utils_npy.py +++ b/tests/test_utils_npy.py @@ -59,13 +59,13 @@ def test_nice_steps_left_aligned(start, stop, step, endpoint, expected): @pytest.mark.parametrize("start, stop, step, endpoint, expected", [ - (0, 5, 2, True, np.array([4., 2., 0.])), - (0, 5, 2, False, np.array([4., 2.])), - (-1, 2, 1.5, True, np.array([1.5, 0., -1.5])), - (-1, 2, 1.5, False, np.array([1.5, 0.])), - (5, 0, -2, True, np.array([4., 2., 0.])), - (5, 0, -2, False, np.array([4., 2.])), - (-3, 3, 2, True, np.array([2., 0., -2.])), + (0, 5, 2, True, np.array([0., 2., 4.])), + (0, 5, 2, False, np.array([0., 2.])), + (-1, 2, 1.5, True, np.array([-1.5, 0., 1.5])), + (-1, 2, 1.5, False, np.array([-1.5, 0.])), + (5, 0, -2, True, np.array([0., 2., 4.])), + (5, 0, -2, False, np.array([0., 2.])), + (-3, 3, 2, True, np.array([-2., 0., 2.])), ]) def test_nice_steps_right_aligned(start, stop, step, endpoint, expected): np.testing.assert_allclose(nice_steps_right_aligned(start, stop, step, endpoint), expected)