Removed meaningless qhull tests
This commit is contained in:
parent
ba0bf9e7e4
commit
1bc797a14d
@ -7,7 +7,6 @@ import baker2d
|
|||||||
import baker3d
|
import baker3d
|
||||||
import cubic2d
|
import cubic2d
|
||||||
import pattern
|
import pattern
|
||||||
import qhull
|
|
||||||
import quadratic2d
|
import quadratic2d
|
||||||
|
|
||||||
|
|
||||||
@ -18,7 +17,6 @@ if __name__ == '__main__':
|
|||||||
unittest.TestLoader().loadTestsFromTestCase(baker3d.Test),
|
unittest.TestLoader().loadTestsFromTestCase(baker3d.Test),
|
||||||
unittest.TestLoader().loadTestsFromTestCase(cubic2d.Test),
|
unittest.TestLoader().loadTestsFromTestCase(cubic2d.Test),
|
||||||
unittest.TestLoader().loadTestsFromTestCase(pattern.Test),
|
unittest.TestLoader().loadTestsFromTestCase(pattern.Test),
|
||||||
unittest.TestLoader().loadTestsFromTestCase(qhull.Test),
|
|
||||||
unittest.TestLoader().loadTestsFromTestCase(quadratic2d.Test),
|
unittest.TestLoader().loadTestsFromTestCase(quadratic2d.Test),
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -1,27 +0,0 @@
|
|||||||
#!/usr/bin/env python
|
|
||||||
|
|
||||||
import unittest
|
|
||||||
|
|
||||||
class Test(unittest.TestCase):
|
|
||||||
def setUp(self):
|
|
||||||
self.l = [[-1, 1], [-1, 0], [-1, 1], [0, -1], [0, 0], [0, 1], [1, -1], [1, 0], [1, 1]]
|
|
||||||
|
|
||||||
|
|
||||||
def testQhull(self):
|
|
||||||
import delaunay
|
|
||||||
dt = delaunay.Triangulation(self.l)
|
|
||||||
answer = [
|
|
||||||
[4,1,3],
|
|
||||||
[1,5,0],
|
|
||||||
[5,1,4],
|
|
||||||
[7,3,6],
|
|
||||||
[7,4,3],
|
|
||||||
[7,5,4],
|
|
||||||
[5,7,8],
|
|
||||||
]
|
|
||||||
|
|
||||||
self.assertEqual(dt.indices, answer)
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
|
||||||
suite = unittest.TestLoader().loadTestsFromTestCase(Test)
|
|
||||||
unittest.TextTestRunner(verbosity=5).run(suite)
|
|
Loading…
Reference in New Issue
Block a user