git://git.novaco.in
/
p2pool.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
improved coverage for VarInt
[p2pool.git]
/
p2pool
/
test
/
util
/
test_pack.py
1
import unittest
2
3
from p2pool.util import pack
4
5
class Test(unittest.TestCase):
6
def test_VarInt(self):
7
t = pack.VarIntType()
8
for i in xrange(2**20):
9
assert t.unpack(t.pack(i)) == i
10
for i in xrange(2**36, 2**36+25):
11
assert t.unpack(t.pack(i)) == i