Tested exceptions thrown

This commit is contained in:
_ 2018-05-17 11:26:01 -07:00
parent 2c3aba370f
commit 201df8d366

View File

@ -101,6 +101,16 @@ if __name__ == "__main__":
print(gh.getpadding()) print(gh.getpadding())
print(gh.getunknownoffset()) print(gh.getunknownoffset())
mh = pyMeshHeader(3, data) mh = pyMeshHeader(3, data)
print("-------------")
try:
mh = pyMeshHeader(87, data)
except RuntimeError as e:
print(str(e))
try:
mh = pyMesh(87, data)
except RuntimeError as e:
print(str(e))
print("-------------")
mh.show() mh.show()
m = pyMesh(0, data) m = pyMesh(0, data)
m.show() m.show()