aboutsummaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/template_typedef_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/template_typedef_runme.py')
-rw-r--r--Examples/test-suite/python/template_typedef_runme.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/Examples/test-suite/python/template_typedef_runme.py b/Examples/test-suite/python/template_typedef_runme.py
new file mode 100644
index 000000000..cf73d5919
--- /dev/null
+++ b/Examples/test-suite/python/template_typedef_runme.py
@@ -0,0 +1,33 @@
+from template_typedef import *
+
+d = make_Identity_float()
+c = make_Identity_real()
+
+
+try:
+ a = d.this
+ a = c.this
+except:
+ raise RuntimeError
+
+try:
+ e = make_Multiplies_float_float_float_float(d, d)
+ a = e.this
+except:
+ print e, "is not an instance"
+ raise RuntimeError
+
+try:
+ f = make_Multiplies_real_real_real_real(c, c)
+ a = f.this
+except:
+ print f, "is not an instance"
+ raise RuntimeError
+
+try:
+ g = make_Multiplies_float_float_real_real(d, c)
+ a = g.this
+except:
+ print g, "is not an instance"
+ raise RuntimeError
+