diff options
author | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-11-13 22:17:27 +0000 |
---|---|---|
committer | vrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb> | 2017-11-13 22:17:27 +0000 |
commit | 72263df69d75f6b987fae2ac22a9115f4f8b4279 (patch) | |
tree | 0e3808b4b9cc5e7cca64818e782905ac7c3e2209 /src/cython/test/test_cubical_complex.py | |
parent | 2eef7988a2f213d3536e67c3f4af77838d181242 (diff) |
Thanks to code coverage, I fugured out some tests were not performed because of teir same name
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/trunk@2872 636b058d-ea47-450e-bf9e-a15bfbe3eedb
Former-commit-id: 9c2158b7e0e77ad7ce8812bdfac312f3f7daf992
Diffstat (limited to 'src/cython/test/test_cubical_complex.py')
-rwxr-xr-x | src/cython/test/test_cubical_complex.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cython/test/test_cubical_complex.py b/src/cython/test/test_cubical_complex.py index 9a365823..0e81554d 100755 --- a/src/cython/test/test_cubical_complex.py +++ b/src/cython/test/test_cubical_complex.py @@ -62,17 +62,17 @@ def test_dimension_or_perseus_file_constructor(): assert cub.__is_defined() == False assert cub.__is_persistence_defined() == False -def test_dimension_constructor(): +def test_dimension_simple_constructor(): cub = CubicalComplex(dimensions=[3, 3], top_dimensional_cells = [1,2,3,4,5,6,7,8,9]) assert cub.__is_defined() == True assert cub.__is_persistence_defined() == False - assert cub.persistence() == [(1, (0.0, 100.0)), (0, (0.0, float('inf')))] + assert cub.persistence() == [(0, (1.0, float('inf')))] assert cub.__is_persistence_defined() == True - assert cub.betti_numbers() == [1, 0] - assert cub.persistent_betti_numbers(0, 1000) == [0, 0] + assert cub.betti_numbers() == [1, 0, 0] + assert cub.persistent_betti_numbers(0, 1000) == [0, 0, 0] -def test_dimension_constructor(): +def test_dimension_file_constructor(): # Create test file test_file = open('CubicalOneSphere.txt', 'w') test_file.write('2\n3\n3\n0\n0\n0\n0\n100\n0\n0\n0\n0\n') |