/[escript]/trunk/escript/py_src/test_util_binary_with_tagged_data.py
ViewVC logotype

Diff of /trunk/escript/py_src/test_util_binary_with_tagged_data.py

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

revision 698 by gross, Thu Mar 23 10:55:31 2006 UTC revision 699 by gross, Fri Mar 31 06:27:56 2006 UTC
# Line 21783  class Test_util_binary_with_tagged_data( Line 21783  class Test_util_binary_with_tagged_data(
21783        self.failUnless(isinstance(res,Data),"wrong type of result.")        self.failUnless(isinstance(res,Data),"wrong type of result.")
21784        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")        self.failUnlessEqual(res.getShape(),(4, 5, 4, 5),"wrong shape of result.")
21785        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
21786       #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
21787       def test_power_float_rank0_taggedData_rank0(self):
21788          arg0=3.76704928748
21789          arg1=Data(1.30536801555,self.functionspace)
21790          arg1.setTaggedValue(1,3.46723750757)
21791          res=power(arg0,arg1)
21792          ref=Data(5.64798685367,self.functionspace)
21793          ref.setTaggedValue(1,99.3420963479)
21794          self.failUnless(isinstance(res,Data),"wrong type of result.")
21795          self.failUnlessEqual(res.getShape(),(),"wrong shape of result.")
21796          self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")

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

  ViewVC Help
Powered by ViewVC 1.1.26