Skip to content

Commit

Permalink
Removed commented-out lines in tests/function.py
Browse files Browse the repository at this point in the history
Several obvious checks were commented out because they were applied to cloned functions,
which don't support the extra methods of function subclasses. An alternative would be to
cast the clone to the appropriate type, but the current tests suffice.
  • Loading branch information
r-owen committed Oct 29, 2014
1 parent b80fe1d commit 985938f
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions tests/function.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,6 @@ def testChebyshev1Function1D(self):
self.assertEqual(g.getMaxX(), xMax)
self.assertEqual(g.getOrder(), order)

# self.assertEqual(h.getMinX(), xMin)
# self.assertEqual(h.getMaxX(), xMax)

minXNorm = None
maxXNorm = None
for x in numpy.arange(xMin, xMax + xDelta/2.0, xDelta):
Expand Down Expand Up @@ -198,9 +195,6 @@ def testChebyshev1Function2D(self):
self.assertEqual(g.getXYRange(), xyRange)
self.assertEqual(g.getOrder(), order)

# self.assertEqual(h.getXYRange(), xyRange)
# self.assertEqual(h.getOrder(), order)

# vary x in the inner loop to exercise the caching
minYNorm = None
maxYNorm = None
Expand Down Expand Up @@ -556,7 +550,6 @@ def basic1DPoly(x, params):

self.assertEqual(f.getOrder(), order)
self.assertEqual(g.getOrder(), order)
# self.assertEqual(h.getOrder(), order)

for x in numpy.arange(-10.0, 10.1, 1.0):
predVal = basic1DPoly(x, params)
Expand Down Expand Up @@ -603,7 +596,6 @@ def basic2DPoly(x, y, params):

self.assertEqual(f.getOrder(), order)
self.assertEqual(g.getOrder(), order)
# self.assertEqual(h.getOrder(), order)

# vary x in the inner loop to exercise the caching
for y in numpy.arange(-10.0, 10.1, 2.5):
Expand Down

0 comments on commit 985938f

Please sign in to comment.