Changeset 2310


Ignore:
Timestamp:
Jan 31, 2006, 5:50:21 PM (19 years ago)
Author:
ole
Message:

Fix of unreal test

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/utilities/test_polygon.py

    r2200 r2310  
    384384        assert inside_polygon(point, polygon)
    385385
    386         #this get's into a vicious loop
    387         polygon = [[1e32,1e54], [1,0], [1,1], [0,1]]
     386
     387        #this may get into a vicious loop
     388        #polygon = [[1e32,1e54], [1,0], [1,1], [0,1]]
     389       
     390        polygon = [[1e25,1e17], [1,0], [1,1], [0,1]]
    388391        point = point_in_polygon(polygon)
    389392        assert inside_polygon(point, polygon)
     
    394397        assert inside_polygon(point, polygon)
    395398       
    396         polygon = [[1e32,1e54], [-1e32,1e54],[1e32,-1e54]]
     399        polygon = [[1e32,1e54], [-1e32,1e54], [1e32,-1e54]]
    397400        point = point_in_polygon(polygon)
    398401        assert inside_polygon(point, polygon)
    399402       
    400         polygon = [[1e32,1e54], [1,0], [0,1]]
     403        polygon = [[1e25,1e18], [1,0], [0,1]]
    401404        point = point_in_polygon(polygon)
    402405        assert inside_polygon(point, polygon)
Note: See TracChangeset for help on using the changeset viewer.