Skip to content
Snippets Groups Projects
Commit c67fa063 authored by Piotr Maślanka's avatar Piotr Maślanka
Browse files

test

parent 2fcfaf2f
No related branches found
No related tags found
No related merge requests found
......@@ -14,6 +14,10 @@ class TestRange(unittest.TestCase):
if bool(Range(b).intersection(a)) != val:
self.fail('%s ^ %s != %s' % (Range(b), Range(a), val))
def test_isempty(self):
self.assertTrue(Range(-1,-1,False,False).is_empty())
self.assertFalse(Range(-1,-1,False,True).is_empty())
def test_intersection(self):
self.do_intersect(Range(-10, -1, True, True), '<2;3>', False)
self.do_intersect(Range(-10, -1, True, False), '(-1;3>', False)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment