def test_accurate_results(params, start_desired, end_desired, size_desired):
    """Test that the actual results are the expected ones."""
    start_actual, end_actual, size_actual = segmentation(**params)
    np.testing.assert_array_equal(start_actual, start_desired)
    np.testing.assert_array_equal(end_actual, end_desired)
    np.testing.assert_equal(size_actual, size_desired)
Test that the actual results are the expected ones.
pyts/utils/tests/test_segmentation.py