diff --git a/tests/test_regions.py b/tests/test_regions.py old mode 100644 new mode 100755 index 62136299..433b5218 --- a/tests/test_regions.py +++ b/tests/test_regions.py @@ -4,13 +4,12 @@ """ from __future__ import print_function - -__author__ = 'Paul Hancock' - from AegeanTools.regions import Region import numpy as np import os +__author__ = 'Paul Hancock' + def test_radec2sky(): """Test function: Region.radec2sky""" @@ -202,7 +201,16 @@ def test_intersect(): b = Region(maxdepth=7) b.add_circles(0, np.radians(-90), np.radians(0.5)) a.intersect(b) - if not (a.get_area() == b.get_area()): raise AssertionError("test_intersect FAILED") + if not (a.get_area() == b.get_area()): + raise AssertionError("test_intersect FAILED") + + a = Region(maxdepth=8) + a.add_circles(0, np.radians(75), np.radians(3)) + c = Region(maxdepth=8) + c.add_circles(0, np.radians(90), np.radians(10)) + a.intersect(c) + if not (a.get_area() == 0.): + raise AssertionError("test_intersect FAILED") def test_demote():