/[escript]/branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py
ViewVC logotype

Diff of /branches/symbolic_from_3470/dudley/test/python/run_escriptOnDudley.py

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

revision 1715 by gross, Thu Feb 14 10:01:43 2008 UTC revision 1716 by gross, Thu Aug 21 05:03:49 2008 UTC
# Line 40  class Test_DomainOnFinley(Test_Domain): Line 40  class Test_DomainOnFinley(Test_Domain):
40         self.domain =Rectangle(NE,NE+1,2)         self.domain =Rectangle(NE,NE+1,2)
41     def tearDown(self):     def tearDown(self):
42         del self.domain         del self.domain
43  class Test_DataOpsOnFinley(Test_Dump): # , Test_SetDataPointValue):  
44       def test_tagsContinuousFunction(self):
45           ref_tags=[0]
46           tags=ContinuousFunction(self.domain).getListOfTags()
47           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
48           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
49    
50       def test_tagsFunction(self):
51           ref_tags=[0]
52           tags=Function(self.domain).getListOfTags()
53           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
54           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
55       def test_tagsReducedFunction(self):
56           ref_tags=[0]
57           tags=ReducedFunction(self.domain).getListOfTags()
58           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
59           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
60       def test_tagsFunctionOnBoundary(self):
61           ref_tags=[1, 2, 10, 20]
62           tags=FunctionOnBoundary(self.domain).getListOfTags()
63           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
64           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
65       def test_tagsReducedFunctionOnBoundary(self):
66           ref_tags=[1, 2, 10, 20]
67           tags=ReducedFunctionOnBoundary(self.domain).getListOfTags()
68           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
69           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
70       def test_tagsFunctionOnContactOne(self):
71           ref_tags=[]
72           tags=FunctionOnContactOne(self.domain).getListOfTags()
73           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
74           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
75       def test_tagsFunctionOnContactZero(self):
76           ref_tags=[]
77           tags=FunctionOnContactZero(self.domain).getListOfTags()
78           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
79           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
80       def test_tagsReducedFunctionOnContactOne(self):
81           ref_tags=[]
82           tags=ReducedFunctionOnContactOne(self.domain).getListOfTags()
83           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
84           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
85       def test_tagsReducedFunctionOnContactZero(self):
86           ref_tags=[]
87           tags=ReducedFunctionOnContactZero(self.domain).getListOfTags()
88           self.failUnless(len(tags)==len(ref_tags), "tags list has wrong length.")
89           for i in ref_tags: self.failUnless(i in tags,"tag %s is missing."%i)
90    
91    class Test_DataOpsOnFinley(Test_Dump, Test_SetDataPointValue):
92     def setUp(self):     def setUp(self):
93         self.domain =Rectangle(NE,NE+1,2)         self.domain =Rectangle(NE,NE+1,2)
94         self.domain_with_different_number_of_samples =Rectangle(2*NE,NE+1,2)         self.domain_with_different_number_of_samples =Rectangle(2*NE,NE+1,2)

Legend:
Removed from v.1715  
changed lines
  Added in v.1716

  ViewVC Help
Powered by ViewVC 1.1.26