Skip to content

Commit

Permalink
updated tests, so they test for the original comparison theory, and pass
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Fleenor committed Jul 22, 2010
1 parent 8f04164 commit 4251e39
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions tcpseq.py
Expand Up @@ -42,17 +42,14 @@ def testWrappedSubtraction(self):
self.assertEqual(subtract(0x10000000, 0xd0000000), 0x40000000)
# actual: a > b. want: a < b
self.assertEqual(subtract(0xd0000000, 0x10000000), -0x40000000)
print 'testing ryans case, subtraction'
self.assertEqual(subtract(0x100, 0xffffffff), -0x100)
#self.assertEqual(subtract(
#self.assertEqual(subtract(
#self.assertEqual(subtract(

class TestLessThan(unittest.TestCase):
def testLessThan(self):
self.assertTrue( not lt(100, 10))
self.assertTrue( lt(0x100, 0xffffffff))
self.assertTrue( lt(0xf0000000, 0x7fffffff))
self.assertTrue( lt(0x7fffffff, 0xf0000000))

def runtests():
suite = unittest.TestSuite()
Expand Down

0 comments on commit 4251e39

Please sign in to comment.