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

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

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

revision 399 by gross, Wed Dec 21 05:08:25 2005 UTC revision 400 by gross, Wed Dec 21 23:13:39 2005 UTC
# Line 225  class Test_util_unary_no_tagged_data(Tes Line 225  class Test_util_unary_no_tagged_data(Tes
225        arg=numarray.array(-15.0739210922)        arg=numarray.array(-15.0739210922)
226        res=wherePositive(arg)        res=wherePositive(arg)
227        ref=numarray.array(0.0)        ref=numarray.array(0.0)
228        if not isinstance(res,float):        if isinstance(res,numarray.NumArray):
          self.failUnless(isinstance(res,numarray.NumArray),"wrong type of result.")  
229           self.failUnlessEqual(res.shape,(),"wrong shape of result.")           self.failUnlessEqual(res.shape,(),"wrong shape of result.")
230          else:
231             self.failUnless(isinstance(res,float),"wrong type of result.")
232        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")        self.failUnless(Lsup(res-ref)<=self.RES_TOL*Lsup(ref),"wrong result")
233     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++     #+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
234     def test_wherePositive_array_rank1(self):     def test_wherePositive_array_rank1(self):

Legend:
Removed from v.399  
changed lines
  Added in v.400

  ViewVC Help
Powered by ViewVC 1.1.26