summaryrefslogtreecommitdiff
path: root/src/python/test/test_simplex_tree.py
diff options
context:
space:
mode:
authorMathieuCarriere <mathieu.carriere3@gmail.com>2020-03-17 00:13:32 -0400
committerMathieuCarriere <mathieu.carriere3@gmail.com>2020-03-17 00:13:32 -0400
commit6e289999fab86bf06cd69c5b7b846c4f26e0a525 (patch)
tree5c35a7c0d3c1bc0601d408c0ddb27173f9caf48f /src/python/test/test_simplex_tree.py
parentab04de27d4f4f1382a13de6b4c48ea298fcb1bac (diff)
fixes
Diffstat (limited to 'src/python/test/test_simplex_tree.py')
-rwxr-xr-xsrc/python/test/test_simplex_tree.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/python/test/test_simplex_tree.py b/src/python/test/test_simplex_tree.py
index caefeb9c..96ec4707 100755
--- a/src/python/test/test_simplex_tree.py
+++ b/src/python/test/test_simplex_tree.py
@@ -245,6 +245,10 @@ def test_make_filtration_non_decreasing():
assert st.filtration([0, 1, 6]) == 1.0
assert st.filtration([0, 1]) == 1.0
assert st.filtration([0]) == 1.0
+ assert st.filtration([1]) == 1.0
+ assert st.filtration([3, 4, 5]) == 2.0
+ assert st.filtration([3, 4]) == 2.0
+ assert st.filtration([4, 5]) == 2.0
def test_extend_filtration():
@@ -271,7 +275,7 @@ def test_extend_filtration():
st.assign_filtration([4], 5.)
st.assign_filtration([5], 6.)
- assert st.get_filtration() == [
+ assert list(st.get_filtration()) == [
([0, 2], 0.0),
([1, 2], 0.0),
([0, 3], 0.0),
@@ -289,7 +293,7 @@ def test_extend_filtration():
st.extend_filtration()
- assert st.get_filtration() == [
+ assert list(st.get_filtration()) == [
([6], -3.0),
([0], -2.0),
([1], -1.8),
@@ -327,10 +331,6 @@ def test_extend_filtration():
[(1, (6.0, 1.0))]
]
- assert st.filtration([1]) == 1.0
- assert st.filtration([3, 4, 5]) == 2.0
- assert st.filtration([3, 4]) == 2.0
- assert st.filtration([4, 5]) == 2.0
def test_simplices_iterator():
st = SimplexTree()