FF.E...E..E.E.E. ====================================================================== ERROR: testExpand (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 62, in testExpand self.assertEqual(Interval(-3, 10), i.expand(right=-1)) File "unittest.py", line 332, in failUnlessEqual if not first == second: File ".../fn43860/2007-04-04 15:28:55/user.py", line 77, in __eq__ return self.left_val==other.left_val and self.right_val==other.right_val AttributeError: 'NoneType' object has no attribute 'left_val' ====================================================================== ERROR: testIntersects (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 73, in testIntersects self.assertTrue(Interval(2, 3).intersects(Interval(3, 4))) File ".../fn43860/2007-04-04 15:28:55/user.py", line 64, in intersects if z==None: File ".../fn43860/2007-04-04 15:28:55/user.py", line 77, in __eq__ return self.left_val==other.left_val and self.right_val==other.right_val AttributeError: 'NoneType' object has no attribute 'left_val' ====================================================================== ERROR: testLen (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 95, in testLen self.assertEqual(5, len(Interval(0, 5))) AttributeError: Interval instance has no attribute '__len__' ====================================================================== ERROR: testRepr (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 25, in testRepr self.assertEqual(i, eval(repr(i))) File "", line 1 <__builtin__.Interval instance at 0xb7c92dac> ^ SyntaxError: invalid syntax ====================================================================== ERROR: testSum (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 102, in testSum self.assertEqual(Interval(None, None), Interval(None, 11) + Interval(10, None)) File ".../fn43860/2007-04-04 15:28:55/user.py", line 114, in __add__ if self.intersects(other): File ".../fn43860/2007-04-04 15:28:55/user.py", line 64, in intersects if z==None: File ".../fn43860/2007-04-04 15:28:55/user.py", line 77, in __eq__ return self.left_val==other.left_val and self.right_val==other.right_val AttributeError: 'NoneType' object has no attribute 'left_val' ====================================================================== FAIL: testCmp (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 108, in testCmp self.assertFalse(Interval(1, 2) <= Interval(0.5, 1.5)) AssertionError ====================================================================== FAIL: testContains (tester.ProblemTests) ---------------------------------------------------------------------- Traceback (most recent call last): File ".../test.py", line 85, in testContains self.assertFalse(Interval(None, -8).contains(Interval(-8, None))) AssertionError ---------------------------------------------------------------------- Ran 16 tests in 0.005s FAILED (failures=2, errors=5)