From 201df8d366c099cc9d45319fe52c3d3a7818ed34 Mon Sep 17 00:00:00 2001 From: _ <_> Date: Thu, 17 May 2018 11:26:01 -0700 Subject: [PATCH] Tested exceptions thrown --- bindings/__test__.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/bindings/__test__.py b/bindings/__test__.py index 3953c65..b3bf85d 100755 --- a/bindings/__test__.py +++ b/bindings/__test__.py @@ -101,6 +101,16 @@ if __name__ == "__main__": print(gh.getpadding()) print(gh.getunknownoffset()) 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() m = pyMesh(0, data) m.show()