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): |
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) |
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)) |