From 6c80ef2f7b18aa1614d746cfde7291b9999c8632 Mon Sep 17 00:00:00 2001 From: Marcelo Matus Date: Sat, 2 Oct 2004 02:31:30 +0000 Subject: [PATCH] add runme test git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6287 626c5289-ae23-0410-ae9c-e8d60b6d4f22 --- SWIG/Examples/test-suite/python/ret_by_value_runme.py | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 SWIG/Examples/test-suite/python/ret_by_value_runme.py diff --git a/SWIG/Examples/test-suite/python/ret_by_value_runme.py b/SWIG/Examples/test-suite/python/ret_by_value_runme.py new file mode 100644 index 000000000..0b2d7fd86 --- /dev/null +++ b/SWIG/Examples/test-suite/python/ret_by_value_runme.py @@ -0,0 +1,8 @@ +import ret_by_value + +a = ret_by_value.get_test() +if a.myInt != 100: + raise RuntimeError + +if a.myShort != 200: + raise RuntimeError