Extend C# wchar_t member test to pass unicode strings
This commit is contained in:
parent
6db3ab0d05
commit
33765e5025
1 changed files with 7 additions and 0 deletions
|
|
@ -106,6 +106,13 @@ public class runme
|
|||
check_equal(received, expected);
|
||||
}
|
||||
|
||||
foreach (string expected in test_strings)
|
||||
{
|
||||
s.wchar_t_ptr_member = expected;
|
||||
string received = s.wchar_t_ptr_member;
|
||||
check_equal(received, expected);
|
||||
}
|
||||
|
||||
/* Not working for Japanese and Russian characters on Windows, okay on Linux
|
||||
* Is fixed by adding CharSet=CharSet.Unicode to the DllImport, so change to:
|
||||
* [global::System.Runtime.InteropServices.DllImport("li_std_wstring", CharSet=global::System.Runtime.InteropServices.CharSet.Unicode, EntryPoint="CSharp_li_std_wstringNamespace_test_wcvalue")]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue