Changeset 3097
- Timestamp:
- Jun 6, 2006, 12:25:25 PM (19 years ago)
- Location:
- inundation
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/test_mesh.py
r3013 r3097 9 9 from mesh import * 10 10 11 from mesh import *12 11 from load_mesh.loadASCII import * 13 12 from coordinate_transforms.geo_reference import Geo_reference 14 from utilities.polygon import inside_polygon13 from utilities.polygon import is_inside_polygon ### inside_polygon 15 14 16 15 class meshTestCase(unittest.TestCase): … … 1584 1583 def test_Discretised_Tuple_Set_rounding(self): 1585 1584 #This is the hardest bit of DST 1586 from mesh import Discretised_Tuple_Set1587 1585 1588 1586 tol = 0.1 … … 1619 1617 1620 1618 def test_Discretised_Tuple_Set_get(self): 1621 from mesh import Discretised_Tuple_Set1619 1622 1620 tol = 0.25 1623 1621 a=Discretised_Tuple_Set(p_rel=1,t_rel = tol) … … 1635 1633 1636 1634 def test_mapped_Discretised_Tuple_Set(self): 1637 1638 from mesh import Mapped_Discretised_Tuple_Set1639 from mesh import Discretised_Tuple_Set1640 1635 1641 1636 def map(sequence): … … 1713 1708 # poly_point values are relative to the mesh geo-ref 1714 1709 # make them absolute 1715 self.failUnless(i nside_polygon([poly_point.x+x,poly_point.y+y],1710 self.failUnless(is_inside_polygon([poly_point.x+x,poly_point.y+y], 1716 1711 polygon_absolute, closed = False), 1717 1712 'FAILED!') … … 1811 1806 # make them absolute 1812 1807 #print "poly_point.x+x",poly_point.x+x 1808 #print "poly_point.y+y",poly_point.y+y 1813 1809 #print "polygon_absolute", polygon_absolute 1814 self.failUnless(i nside_polygon([poly_point.x+x,poly_point.y+y],1810 self.failUnless(is_inside_polygon([poly_point.x+x,poly_point.y+y], 1815 1811 polygon_absolute, closed = False), 1816 1812 'FAILED!') … … 2000 1996 if __name__ == "__main__": 2001 1997 suite = unittest.makeSuite(meshTestCase,'test') 2002 #suite = unittest.makeSuite(meshTestCase,'test_ duplicat_verts_do_what')1998 #suite = unittest.makeSuite(meshTestCase,'test_add_hole_from_polygon') 2003 1999 runner = unittest.TextTestRunner() #verbosity=2) 2004 2000 runner.run(suite) -
inundation/test_all.py
r3093 r3097 18 18 exclude_files = ['test_metis.py', 'test_version.py', 'test_parallel_sw.py', 19 19 'test_advection.py', # removing this test for a bit 20 'test_mesh.py', # bug fixing20 #'test_mesh.py', # bug fixing 21 21 'test_interpolate_sww.py' # this test is obsolete 22 22 ]
Note: See TracChangeset
for help on using the changeset viewer.