mirror of
https://notabug.org/scuti/lib3ddevil1
synced 2024-11-22 13:53:02 +05:30
Tested exceptions thrown
This commit is contained in:
parent
2c3aba370f
commit
201df8d366
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user