summaryrefslogtreecommitdiff
path: root/Examples/test-suite
diff options
context:
space:
mode:
Diffstat (limited to 'Examples/test-suite')
-rw-r--r--Examples/test-suite/csharp/li_std_wstring_runme.cs3
-rw-r--r--Examples/test-suite/guile/guile_ext_test_external.cxx2
-rw-r--r--Examples/test-suite/li_std_wstring.i2
3 files changed, 5 insertions, 2 deletions
diff --git a/Examples/test-suite/csharp/li_std_wstring_runme.cs b/Examples/test-suite/csharp/li_std_wstring_runme.cs
index d2927287f..a949f8c38 100644
--- a/Examples/test-suite/csharp/li_std_wstring_runme.cs
+++ b/Examples/test-suite/csharp/li_std_wstring_runme.cs
@@ -84,7 +84,10 @@ public class runme
{
// Unicode strings
+ char unicodechar = '\u73a9'; // Chinese character for father, man
+ string unicodeString = unicodechar.ToString();
string[] test_strings = {
+ unicodeString,
"JP: 日本語", "DE: Kröpeliner Straße" , "RU: Война и мир", "EN: War and Peace"
};
diff --git a/Examples/test-suite/guile/guile_ext_test_external.cxx b/Examples/test-suite/guile/guile_ext_test_external.cxx
index c4f906a97..2729537bd 100644
--- a/Examples/test-suite/guile/guile_ext_test_external.cxx
+++ b/Examples/test-suite/guile/guile_ext_test_external.cxx
@@ -19,6 +19,6 @@ SCM test_create()
SCM test_is_pointer(SCM val)
{
#define FUNC_NAME "test-is-pointer"
- return SCM_BOOL(SWIG_IsPointer(val));
+ return scm_from_bool(SWIG_IsPointer(val));
#undef FUNC_NAME
}
diff --git a/Examples/test-suite/li_std_wstring.i b/Examples/test-suite/li_std_wstring.i
index a790ca7e0..3a451b19b 100644
--- a/Examples/test-suite/li_std_wstring.i
+++ b/Examples/test-suite/li_std_wstring.i
@@ -35,7 +35,7 @@ wchar_t* test_wchar_overload(wchar_t *x) {
return x;
}
-std::wstring test_value(std::wstring x) {
+std::wstring test_value(const std::wstring& x) {
return x;
}