summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
authorMarc Glisse <marc.glisse@inria.fr>2021-04-15 23:48:23 +0200
committerGitHub <noreply@github.com>2021-04-15 23:48:23 +0200
commit6dd3fa27498fbf3f3af876c520f28fbf110d60dd (patch)
tree28e4b07eb6b8b92e9bf8a02fd0cd17fa845ed7f3 /src/python
parent3aa34990101489b98a8bc1bd3abc55f0d77ebf7c (diff)
parentd2f12c8563d9f7aa1f8ead0da0034796a88704e9 (diff)
Merge pull request #474 from mglisse/cmplist
Compare lists with ==
Diffstat (limited to 'src/python')
-rwxr-xr-xsrc/python/test/test_tomato.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/test/test_tomato.py b/src/python/test/test_tomato.py
index ecab03c4..c571f799 100755
--- a/src/python/test/test_tomato.py
+++ b/src/python/test/test_tomato.py
@@ -37,7 +37,7 @@ def test_tomato_1():
t = Tomato(metric="euclidean", graph_type="radius", r=4.7, k=4)
t.fit(a)
assert t.max_weight_per_cc_.size == 2
- assert np.array_equal(t.neighbors_, [[0, 1, 2], [0, 1, 2], [0, 1, 2], [3, 4, 5, 6], [3, 4, 5], [3, 4, 5], [3, 6]])
+ assert t.neighbors_ == [[0, 1, 2], [0, 1, 2], [0, 1, 2], [3, 4, 5, 6], [3, 4, 5], [3, 4, 5], [3, 6]]
t.plot_diagram()
t = Tomato(graph_type="radius", r=4.7, k=4, symmetrize_graph=True)