geometry.tests.test_jarvis_march¶
Unit tests for Jarvis March (Gift Wrapping) algorithm.
Classes¶
Tests for the jarvis_march function. |
|
Tests for the Point class. |
Module Contents¶
- class geometry.tests.test_jarvis_march.TestJarvisMarch¶
Tests for the jarvis_march function.
- test_collinear_points() None¶
Test that collinear points return empty hull.
- test_duplicate_points() None¶
Test handling of duplicate points.
- test_empty_list() None¶
Test empty list returns empty hull.
- test_pentagon() None¶
Test convex hull of a pentagon.
- test_rectangle_with_interior_point() None¶
Test rectangle with interior point - interior point excluded.
- test_single_point() None¶
Test single point returns empty hull.
- test_square() None¶
Test convex hull of a square.
- test_star_shape() None¶
Test star shape - only tips are in hull.
- test_triangle() None¶
Test convex hull of a triangle.
- test_two_points() None¶
Test two points return empty hull.