/[escript]/trunk/escriptcore/test/python/run_symbolic.py
ViewVC logotype

Diff of /trunk/escriptcore/test/python/run_symbolic.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 4017 by caltinay, Thu Oct 11 03:13:28 2012 UTC revision 4018 by jfenwick, Thu Oct 11 04:43:39 2012 UTC
# Line 72  class SymbolicTestCase(unittest.TestCase Line 72  class SymbolicTestCase(unittest.TestCase
72          xx=Data(VALUE, FunctionSpace())          xx=Data(VALUE, FunctionSpace())
73          ref=[VALUE**2, VALUE**3, VALUE**4, VALUE**5]          ref=[VALUE**2, VALUE**3, VALUE**4, VALUE**5]
74          res=e(x=xx)          res=e(x=xx)
75          for i in xrange(len(ref)):          for i in range(len(ref)):
76              self.assertTrue(isinstance(res[i], Data), "substituted expression not a Data object")              self.assertTrue(isinstance(res[i], Data), "substituted expression not a Data object")
77              self.assertAlmostEqual(Lsup(res[i]-ref[i]), 0.0, self.TOL_DIGITS, "wrong result after substitution with Data object")              self.assertAlmostEqual(Lsup(res[i]-ref[i]), 0.0, self.TOL_DIGITS, "wrong result after substitution with Data object")
78    

Legend:
Removed from v.4017  
changed lines
  Added in v.4018

  ViewVC Help
Powered by ViewVC 1.1.26