Add C# wchar_t * director typemaps
More Python std::wstring directors Python testing
This commit is contained in:
parent
751d443046
commit
bb39235c9c
5 changed files with 30 additions and 8 deletions
|
|
@ -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))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue