test_hashval.py 230 B

123456789
  1. from panda3d import core
  2. import random
  3. def test_hashval_hex():
  4. hex = '%032x' % random.getrandbits(32 * 4)
  5. val = core.HashVal()
  6. val.input_hex(core.StringStream(hex.encode('ascii')))
  7. assert str(val) == hex.lower()