Print out encoded samples during python tests
This commit is contained in:
parent
eb090bea4b
commit
22e2934845
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue