We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0493f2 commit 8d8580eCopy full SHA for 8d8580e
libpysal/cg/ops/tests/test_tabular.py
@@ -57,11 +57,15 @@ def test_dissolve(self):
57
self.assertEqual(out[0].area, 2.0)
58
self.assertEqual(out[1].area, 2.0)
59
60
- answer_vertices0 = [(0, 0), (0, 1), (0, 2), (1, 2), (1, 1), (1, 0), (0, 0)]
61
- answer_vertices1 = [(2, 1), (2, 0), (1, 0), (1, 1), (1, 2), (2, 2), (2, 1)]
+ answer_vertices0 = set([(0, 0), (0, 1), (0, 2), (1, 2), (1, 1), (1, 0), (0, 0)])
+ answer_vertices1 = set([(2, 1), (2, 0), (1, 0), (1, 1), (1, 2), (2, 2), (2, 1)])
62
+
63
+ s0 = set([tuple(map(int,t)) for t in out[0].vertices])
64
+ s1 = set([tuple(map(int,t)) for t in out[1].vertices])
65
66
+ self.assertTrue(s0==answer_vertices0)
67
+ self.assertTrue(s1==answer_vertices1)
68
- np.testing.assert_allclose(out[0].vertices, answer_vertices0)
- np.testing.assert_allclose(out[1].vertices, answer_vertices1)
69
70
def test_clip(self):
71
pass
0 commit comments