summaryrefslogtreecommitdiff
path: root/src/python/test/test_alpha_complex.py
diff options
context:
space:
mode:
authorROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-03-12 15:46:36 +0100
committerROUVREAU Vincent <vincent.rouvreau@inria.fr>2021-03-12 15:46:36 +0100
commita71694354af45e8edc2e2d2b4e14795bf9b5e5f1 (patch)
tree828037055878f60b5aa37468933bdd082af2dffa /src/python/test/test_alpha_complex.py
parentc838e3ec441109cc02ea4612dd2189860662298f (diff)
review constructor and test with one point and without points
Diffstat (limited to 'src/python/test/test_alpha_complex.py')
-rwxr-xr-xsrc/python/test/test_alpha_complex.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/python/test/test_alpha_complex.py b/src/python/test/test_alpha_complex.py
index 814f8289..8f1424ec 100755
--- a/src/python/test/test_alpha_complex.py
+++ b/src/python/test/test_alpha_complex.py
@@ -25,12 +25,17 @@ __license__ = "MIT"
def _empty_alpha(precision):
+ alpha_complex = gd.AlphaComplex(precision = precision)
+ assert alpha_complex.__is_defined() == True
+
+def _one_2d_point_alpha(precision):
alpha_complex = gd.AlphaComplex(points=[[0, 0]], precision = precision)
assert alpha_complex.__is_defined() == True
def test_empty_alpha():
for precision in ['fast', 'safe', 'exact']:
_empty_alpha(precision)
+ _one_2d_point_alpha(precision)
def _infinite_alpha(precision):
point_list = [[0, 0], [1, 0], [0, 1], [1, 1]]