aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/special_variable_macros_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/special_variable_macros_runme.py')
-rw-r--r--Examples/test-suite/python/special_variable_macros_runme.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/Examples/test-suite/python/special_variable_macros_runme.py b/Examples/test-suite/python/special_variable_macros_runme.py
index e487f9a50..d06b879cf 100644
--- a/Examples/test-suite/python/special_variable_macros_runme.py
+++ b/Examples/test-suite/python/special_variable_macros_runme.py
@@ -1,10 +1,15 @@
import special_variable_macros
+cvar = special_variable_macros.cvar
name = special_variable_macros.Name()
if special_variable_macros.testFred(name) != "none":
raise "test failed"
+if cvar.accessed_examplekw != 0:
+ raise "Precondition failed"
if special_variable_macros.testJack(name) != "$specialname":
raise "test failed"
+if cvar.accessed_examplekw != 1:
+ raise "Postcondition failed"
if special_variable_macros.testJill(name) != "jilly":
raise "test failed"
if special_variable_macros.testMary(name) != "SWIGTYPE_p_NameWrap":
@@ -15,3 +20,7 @@ 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"
+if special_variable_macros.makeStringInt("stringint", 999) != "stringint":
+ raise "test failed"
+if special_variable_macros.provideStringInt(999) != "1000":
+ raise "test failed"