Changeset 8258 for trunk


Ignore:
Timestamp:
Nov 29, 2011, 7:51:34 PM (13 years ago)
Author:
davies
Message:

Added test for recent polygon fix

Location:
trunk/anuga_core/source/anuga
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/geometry/test_polygon.py

    r8060 r8258  
    9696            raise Exception, 'Closed polygon should have raised exception'
    9797
     98    def test_read_polygon_not_complex(self):
     99        from os import sep, getenv
     100        # This polygon is not self intersecting, but was interpreted as self
     101        # intersecting by a previous version of the code
     102
     103        # Get path where this test is run
     104        path = get_pathname_from_package('anuga.utilities')
     105
     106        # Form absolute filename and read
     107        filename = path + sep + 'non_complex_polygon.csv'
     108        # Should cause an Exception
     109        try:
     110            p1 = read_polygon(filename)
     111        except Exception:
     112            raise Exception, 'Non-complex polygon should not have raised exception'
    98113
    99114
Note: See TracChangeset for help on using the changeset viewer.