adding more cases
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@6814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
844924b2c9
commit
25e1e7932a
10 changed files with 79 additions and 14 deletions
|
|
@ -45,7 +45,9 @@ if li_std_string.test_const_reference(a) != x:
|
|||
|
||||
b = li_std_string.string(" world")
|
||||
|
||||
s = a + b
|
||||
if a + b != "hello world":
|
||||
print a + b
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if a + " world" != "hello world":
|
||||
|
|
@ -72,3 +74,12 @@ if b.a != "hello":
|
|||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
||||
if li_std_string.test_value_basic1(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if li_std_string.test_value_basic2(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
||||
if li_std_string.test_value_basic3(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue