/[escript]/trunk/escript/test/python/insituTests.py
ViewVC logotype

Diff of /trunk/escript/test/python/insituTests.py

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

revision 569 by jgs, Fri Dec 16 01:35:07 2005 UTC revision 570 by jgs, Tue Feb 28 06:51:25 2006 UTC
# Line 36  class escriptTestCase(unittest.TestCase) Line 36  class escriptTestCase(unittest.TestCase)
36      else:      else:
37          exx=False          exx=False
38      out=Data(val,what=wh,expand=exx)      out=Data(val,what=wh,expand=exx)
39        if ex=="Tagged":
40            out.tag()
41      return out      return out
42    
43    def testAlina1(self):    def testAlina1(self):
# Line 50  class escriptTestCase(unittest.TestCase) Line 52  class escriptTestCase(unittest.TestCase)
52    
53    def testLog(self):    def testLog(self):
54      for wh in [ContinuousFunction(self.msh),Function(self.msh)]:      for wh in [ContinuousFunction(self.msh),Function(self.msh)]:
55        for ex in ["Constant","Expanded"]:        for ex in ["Constant","Tagged","Expanded"]:
56          for a in arglist:          for a in arglist:
57            #print "\n", ex, a, "==>"            #print "\n", ex, a, "==>"
58            arg=self.prepareArg(a,ex,wh)            arg=self.prepareArg(a,ex,wh)
# Line 59  class escriptTestCase(unittest.TestCase) Line 61  class escriptTestCase(unittest.TestCase)
61    
62    def testLn(self):    def testLn(self):
63      for wh in [ContinuousFunction(self.msh),Function(self.msh)]:      for wh in [ContinuousFunction(self.msh),Function(self.msh)]:
64        for ex in ["Constant","Expanded"]:        for ex in ["Constant","Tagged","Expanded"]:
65          for a in arglist:          for a in arglist:
66            #print "\n", ex, a, "==>"            #print "\n", ex, a, "==>"
67            arg=self.prepareArg(a,ex,wh)            arg=self.prepareArg(a,ex,wh)
68            #print "\nln"            #print "\nln"
69            result = arg._log()            result = arg._log()
70    
71      def testEmptyOp(self):
72        emptyData=Data()
73        emptyData._sin()
74        emptyData2=Data()
75        emptyData3=emptyData+emptyData2
76    
77  if __name__ == '__main__':  if __name__ == '__main__':
78    suite=unittest.TestSuite()    suite=unittest.TestSuite()
79    suite.addTest(unittest.makeSuite(escriptTestCase))    suite.addTest(unittest.makeSuite(escriptTestCase))

Legend:
Removed from v.569  
changed lines
  Added in v.570

  ViewVC Help
Powered by ViewVC 1.1.26