lib_xxx renamed to li_xxx
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@6599 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
9af665a99a
commit
743f258ba3
5 changed files with 60 additions and 60 deletions
|
|
@ -1,23 +1,23 @@
|
|||
import lib_std_string
|
||||
import li_std_string
|
||||
|
||||
x="hello"
|
||||
|
||||
|
||||
|
||||
if lib_std_string.test_ccvalue(x) != x:
|
||||
if li_std_string.test_ccvalue(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_cvalue(x) != x:
|
||||
if li_std_string.test_cvalue(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_value(x) != x:
|
||||
if li_std_string.test_value(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_const_reference(x) != x:
|
||||
if li_std_string.test_const_reference(x) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
||||
s = lib_std_string.string("he")
|
||||
s = li_std_string.string("he")
|
||||
#s += "ll"
|
||||
#s.append('o')
|
||||
s += "llo"
|
||||
|
|
@ -29,21 +29,21 @@ if s != x:
|
|||
if s[1:4] != x[1:4]:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_value(s) != x:
|
||||
if li_std_string.test_value(s) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_const_reference(s) != x:
|
||||
if li_std_string.test_const_reference(s) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
a = lib_std_string.A(s)
|
||||
a = li_std_string.A(s)
|
||||
|
||||
if lib_std_string.test_value(a) != x:
|
||||
if li_std_string.test_value(a) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
if lib_std_string.test_const_reference(a) != x:
|
||||
if li_std_string.test_const_reference(a) != x:
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
b = lib_std_string.string(" world")
|
||||
b = li_std_string.string(" world")
|
||||
|
||||
if a + b != "hello world":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
|
@ -60,14 +60,14 @@ if c.find_last_of("l") != 9:
|
|||
|
||||
s = "hello world"
|
||||
|
||||
b = lib_std_string.B("hi")
|
||||
b = li_std_string.B("hi")
|
||||
|
||||
b.name = lib_std_string.string("hello")
|
||||
b.name = li_std_string.string("hello")
|
||||
if b.name != "hello":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
||||
b.a = lib_std_string.A("hello")
|
||||
b.a = li_std_string.A("hello")
|
||||
if b.a != "hello":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue