Add C# wchar_t * director typemaps

More Python std::wstring directors Python testing
This commit is contained in:
William S Fulton 2022-05-04 19:33:47 +01:00
commit bb39235c9c
5 changed files with 30 additions and 8 deletions

View file

@ -12,6 +12,12 @@ class B(A):
def process_text(self, s):
self.smem = s
def process_wstring_text(self, s):
self.smem = s + " (wstring)"
def process_wstring_ref_text(self, s):
self.smem = s + " (wstring ref)"
b = B("hello")
@ -24,3 +30,13 @@ b.call_process_func()
if b.smem != "hello":
raise RuntimeError("smem: {}".format(smem))
b.call_process_wstring_func()
if b.smem != "hello (wstring)":
raise RuntimeError("smem: {}".format(smem))
b.call_process_wstring_ref_func()
if b.smem != "hello (wstring ref)":
raise RuntimeError("smem: {}".format(smem))