summaryrefslogtreecommitdiff
path: root/trunk/Examples/test-suite/python/special_variable_macros_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/Examples/test-suite/python/special_variable_macros_runme.py')
-rw-r--r--trunk/Examples/test-suite/python/special_variable_macros_runme.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/trunk/Examples/test-suite/python/special_variable_macros_runme.py b/trunk/Examples/test-suite/python/special_variable_macros_runme.py
new file mode 100644
index 000000000..07e60dfa2
--- /dev/null
+++ b/trunk/Examples/test-suite/python/special_variable_macros_runme.py
@@ -0,0 +1,16 @@
+import special_variable_macros
+
+name = special_variable_macros.Name()
+if special_variable_macros.testFred(name) != "none":
+ raise "test failed"
+if special_variable_macros.testJack(name) != "$specialname":
+ raise "test failed"
+if special_variable_macros.testJill(name) != "jilly":
+ raise "test failed"
+if special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap":
+ raise "test failed"
+if special_variable_macros.testJim(name) != "multiname num":
+ raise "test failed"
+if special_variable_macros.testJohn(special_variable_macros.PairIntBool(10, False)) != 123:
+ raise "test failed"
+