adding more cases

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6814 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
Marcelo Matus 2004-12-01 01:17:56 +00:00
commit 52fe09a938
10 changed files with 79 additions and 14 deletions

View file

@ -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"