improved coverage for VarInt
authorForrest Voight <forrest@forre.st>
Wed, 31 Oct 2012 17:17:35 +0000 (13:17 -0400)
committerForrest Voight <forrest@forre.st>
Wed, 31 Oct 2012 17:17:35 +0000 (13:17 -0400)
p2pool/test/util/test_pack.py

index cb5e2bd..07fad9b 100644 (file)
@@ -7,3 +7,5 @@ class Test(unittest.TestCase):
         t = pack.VarIntType()
         for i in xrange(2**20):
             assert t.unpack(t.pack(i)) == i
+        for i in xrange(2**36, 2**36+25):
+            assert t.unpack(t.pack(i)) == i