summaryrefslogtreecommitdiff
path: root/src/python/test/test_cubical_complex.py
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2020-04-28 19:28:24 -0400
committerMathieuCarriere <mathieu.carriere3@gmail.com>2020-04-28 19:28:24 -0400
commitc2b6d95f0b01ca913ddc704350cbfe37bcf13c3a (patch)
treef00f1c960c185c956fcd016fbbbb1178dbd301e2 /src/python/test/test_cubical_complex.py
parent4923f2bd8a18d2f66288f39c08309cb7cafa5627 (diff)
update output
Diffstat (limited to 'src/python/test/test_cubical_complex.py')
-rwxr-xr-xsrc/python/test/test_cubical_complex.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/python/test/test_cubical_complex.py b/src/python/test/test_cubical_complex.py
index dd7653c2..5c59db8f 100755
--- a/src/python/test/test_cubical_complex.py
+++ b/src/python/test/test_cubical_complex.py
@@ -151,4 +151,9 @@ def test_connected_sublevel_sets():
def test_cubical_generators():
cub = CubicalComplex(top_dimensional_cells = [[0, 0, 0], [0, 1, 0], [0, 0, 0]])
cub.persistence()
- assert np.array_equal(cub.cofaces_of_persistence_pairs(), np.array([[1, 7, 4], [0, 8, -1]]))
+ g = cub.cofaces_of_persistence_pairs()
+ assert len(g[0]) == 2
+ assert len(g[1]) == 1
+ assert np.array_equal(g[0][0], np.empty(shape=[0,2]))
+ assert np.array_equal(g[0][1], np.array([[7, 4]]))
+ assert np.array_equal(g[1][0], np.array([8]))