Changeset 3031


Ignore:
Timestamp:
May 31, 2006, 2:24:25 PM (18 years ago)
Author:
duncan
Message:

more tests

Location:
inundation/mesh_engine
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/mesh_engine/test_triangmodule.py

    r3028 r3031  
    299299
    300300
    301     def Xtest_lone_verts(self):
     301    def test_lone_verts(self):
    302302
    303303        points = []
     
    312312        segattlist = [0,0,0,0,0]
    313313        trilist = []
    314         mode = "Qzp"
     314        mode = "QpznAa2000.1a"
    315315        data = triang.genMesh(points,seglist,holelist,regionlist,
    316316                              pointattlist,segattlist,trilist, mode)
     
    329329        #print "", data['lonepointlist']
    330330
    331     def Xtest_lone_vertsII(self):
     331    def ytest_lone_vertsII(self):
    332332
    333333        points = []
     
    347347            segattlist.append(0)
    348348        trilist = []
    349         mode = "Qzp"
     349        mode = "pznAa2000.1a"
    350350        data = triang.genMesh(points,seglist,holelist,regionlist,
    351351                              pointattlist,segattlist,trilist, mode)
     
    365365                        'lonepointlist is wrong!')
    366366
    367     def Xtest_lone_vertsIII(self):
    368 
    369         points = []
    370         seglist = []
    371         holelist = []
    372         regionlist = []
    373 
    374         points = [(0.0,0.0),(0.0,0.0),(0.0,10.0),(0.0,10.0),(10.0,10.0),
    375                   (10.0,10.0),(0.0,10.0),(10.0,0.0)]
    376 
    377         pointattlist = []
    378         for point in points:
    379             pointattlist.append([])
    380         seglist = []
    381         segattlist = []
    382         for seg in seglist:
    383             segattlist.append(0)
    384         trilist = []
    385         mode = "Qzp"
    386         data = triang.genMesh(points,seglist,holelist,regionlist,
    387                               pointattlist,segattlist,trilist, mode)
    388 
    389         self.failUnless(data['lonepointlist'] ==[0,1,2,3,4,5,6,7],
    390                         'lonepointlist is wrong!')
    391367if __name__ == "__main__":
    392368
Note: See TracChangeset for help on using the changeset viewer.