summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/complextest_runme.py
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite/python/complextest_runme.py')
-rw-r--r--Examples/test-suite/python/complextest_runme.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/Examples/test-suite/python/complextest_runme.py b/Examples/test-suite/python/complextest_runme.py
new file mode 100644
index 0000000..cc2463a
--- /dev/null
+++ b/Examples/test-suite/python/complextest_runme.py
@@ -0,0 +1,17 @@
+import complextest
+
+a = complex(-1,2)
+
+if complextest.Conj(a) != a.conjugate():
+ raise RuntimeError, "bad complex mapping"
+
+if complextest.Conjf(a) != a.conjugate():
+ raise RuntimeError, "bad complex mapping"
+
+
+v = (complex(1,2), complex(2,3), complex(4,3), 1)
+
+try:
+ complextest.Copy_h(v)
+except:
+ pass