Print out encoded samples during python tests

This commit is contained in:
Tony Garnock-Jones 2018-11-13 12:15:23 +00:00
parent eb090bea4b
commit 22e2934845
1 changed files with 10 additions and 1 deletions

View File

@ -35,10 +35,19 @@ def _d(bs):
d = Decoder(bs)
return d.next()
_all_encoded = set()
def tearDownModule():
print()
for bs in sorted(_all_encoded):
print(_hex(bs))
def _e(v):
e = Encoder()
e.append(v)
return e.contents()
bs = e.contents()
_all_encoded.add(bs)
return bs
def _R(k, *args):
return Record(Symbol(k), args)