From 1bc797a14d1a3b0e4bff80b017db8abcac2cab63 Mon Sep 17 00:00:00 2001 From: "Stephen M. McQuay" Date: Tue, 6 Sep 2011 13:41:29 -0600 Subject: [PATCH] Removed meaningless qhull tests --- test/all.py | 2 -- test/qhull.py | 27 --------------------------- 2 files changed, 29 deletions(-) delete mode 100644 test/qhull.py diff --git a/test/all.py b/test/all.py index fffea2e..88856e8 100644 --- a/test/all.py +++ b/test/all.py @@ -7,7 +7,6 @@ import baker2d import baker3d import cubic2d import pattern -import qhull import quadratic2d @@ -18,7 +17,6 @@ if __name__ == '__main__': unittest.TestLoader().loadTestsFromTestCase(baker3d.Test), unittest.TestLoader().loadTestsFromTestCase(cubic2d.Test), unittest.TestLoader().loadTestsFromTestCase(pattern.Test), - unittest.TestLoader().loadTestsFromTestCase(qhull.Test), unittest.TestLoader().loadTestsFromTestCase(quadratic2d.Test), ] diff --git a/test/qhull.py b/test/qhull.py deleted file mode 100644 index df9d796..0000000 --- a/test/qhull.py +++ /dev/null @@ -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)