Fix C# std::complex pass by value typemaps

This commit is contained in:
William S Fulton 2017-10-02 19:06:06 +01:00
commit a55981b883
7 changed files with 45 additions and 20 deletions

View file

@ -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)