/[escript]/trunk/finley/test/python/test_utilframe.py
ViewVC logotype

Diff of /trunk/finley/test/python/test_utilframe.py

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

revision 697 by gross, Wed Mar 22 07:43:42 2006 UTC revision 698 by gross, Fri Mar 31 04:52:55 2006 UTC
# Line 25  class Test_util2(unittest.TestCase): Line 25  class Test_util2(unittest.TestCase):
25         res=arg0+arg1         res=arg0+arg1
26         ref=Data(numarray.array([5.4022518198315126, 4.2614777440630327]),self.functionspace)         ref=Data(numarray.array([5.4022518198315126, 4.2614777440630327]),self.functionspace)
27         ref.setTaggedValue(1,numarray.array([3.7916899703627909, 2.650915894594311]))         ref.setTaggedValue(1,numarray.array([3.7916899703627909, 2.650915894594311]))
28           print arg0
29           print arg1
30           print res
31           print ref
32         self.failUnless(isinstance(res,Data),"wrong type of result.")         self.failUnless(isinstance(res,Data),"wrong type of result.")
33         self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")         self.failUnlessEqual(res.getShape(),(2,),"wrong shape of result.")
34         self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")         self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")

Legend:
Removed from v.697  
changed lines
  Added in v.698

  ViewVC Help
Powered by ViewVC 1.1.26