summaryrefslogtreecommitdiff
path: root/Examples/test-suite/python/complextest_runme.py
diff options
context:
space:
mode:
authorWilliam S Fulton <wsf@fultondesigns.co.uk>2017-10-02 19:06:06 +0100
committerWilliam S Fulton <wsf@fultondesigns.co.uk>2017-10-02 19:07:24 +0100
commita55981b883d3f1ed4e7d001c9af961fa306d0797 (patch)
treebfb3df87e1e2d483181caec8c026bd63e098f35d /Examples/test-suite/python/complextest_runme.py
parente01cfd70c7b23c2c5fb9db6a0b7c0cbf4374c341 (diff)
downloadswig-a55981b883d3f1ed4e7d001c9af961fa306d0797.tar.gz
Fix C# std::complex pass by value typemaps
Diffstat (limited to 'Examples/test-suite/python/complextest_runme.py')
-rw-r--r--Examples/test-suite/python/complextest_runme.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/Examples/test-suite/python/complextest_runme.py b/Examples/test-suite/python/complextest_runme.py
index f82b21b42..5cfc7ccab 100644
--- a/Examples/test-suite/python/complextest_runme.py
+++ b/Examples/test-suite/python/complextest_runme.py
@@ -17,8 +17,11 @@ if complextest.Conjf2(a) != a.conjugate():
v = (complex(1, 2), complex(2, 3), complex(4, 3), 1)
-if len(complextest.Copy_h(v)) != 2:
- raise RuntimeError("Copy_h failed")
+if len(complextest.CopyHalf(v)) != 2:
+ raise RuntimeError("CopyHalf failed")
+
+if len(complextest.CopyHalfRef(v)) != 2:
+ raise RuntimeError("CopyHalfRef failed")
p = complextest.ComplexPair()
p.z1 = complex(0, 1)