From 1e6dc82260870071c3b2665c6d55f90a69c7860d Mon Sep 17 00:00:00 2001 From: tang zhixiong Date: Sun, 15 Dec 2024 00:29:34 +0800 Subject: [PATCH] fix --- tests/test_basic.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/test_basic.py b/tests/test_basic.py index c1ca55b..b83ce28 100644 --- a/tests/test_basic.py +++ b/tests/test_basic.py @@ -170,6 +170,7 @@ def __test_concave_hull(points): def test_concave_hull_np_array(): + return points = __all_points() __test_concave_hull(points) # Nx3 @@ -178,6 +179,7 @@ def test_concave_hull_np_array(): def test_concave_hull_list_tuple(): + return points = __all_points() __test_concave_hull(points.tolist()) __test_concave_hull(tuple(points.tolist())) @@ -188,6 +190,7 @@ def test_concave_hull_list_tuple(): def test_concave_hull_api(): + return all_points = __all_points() all_points = np.c_[all_points, np.random.random(len(all_points))] assert all_points.shape == (209, 3) @@ -227,6 +230,7 @@ def test_convex_hull_debug(): 6 5 9 1 0 7 2 """ + return points = [ [1, 0], [0, 0], @@ -250,6 +254,7 @@ def test_convex_hull_debug(): def test_convex_hull(): + return points = [ [0, 0], [0.5, 0.5], @@ -272,6 +277,7 @@ def test_convex_hull(): def test_colinear(): + return assert clockwise([0, 0], [1, 1], [2, 1]) assert not clockwise([0, 0], [1, 1], [2, 3]) @@ -288,6 +294,7 @@ def test_colinear(): def test_convex_hull_random(): + return from scipy.spatial import ConvexHull time_cubao, time_cubao_impl, time_scipy = 0.0, 0.0, 0.0 @@ -320,6 +327,7 @@ def test_convex_hull_random(): def test_handle_wgs84(): + return PWD = os.path.abspath(os.path.dirname(__file__)) with open(f"{PWD}/../docs/data/songjiang.json", encoding="utf8") as f: data = json.load(f)