mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
tests: add test for HashVal reading from hex stream
This commit is contained in:
parent
9d0b074162
commit
de9b9590de
9
tests/express/test_hashval.py
Normal file
9
tests/express/test_hashval.py
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
from panda3d import core
|
||||||
|
import random
|
||||||
|
|
||||||
|
|
||||||
|
def test_hashval_hex():
|
||||||
|
hex = '%032x' % random.getrandbits(32 * 4)
|
||||||
|
val = core.HashVal()
|
||||||
|
val.input_hex(core.StringStream(hex.encode('ascii')))
|
||||||
|
assert str(val) == hex.lower()
|
Loading…
x
Reference in New Issue
Block a user