fixes on test related to member vars
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5933 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
ddcb970b0c
commit
a55e29d2f3
4 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ psi = lib_std_pair.SIPair("hello",1)
|
|||
pci = lib_std_pair.CIPair(1,1)
|
||||
|
||||
|
||||
psi.first = "hi"
|
||||
#psi.first = "hi"
|
||||
|
||||
|
||||
psi = lib_std_pair.SIPair("hi",1)
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ s = "hello world"
|
|||
|
||||
b = lib_std_string.B("hi")
|
||||
|
||||
b.name = "hello"
|
||||
b.name = lib_std_string.string("hello")
|
||||
if b.name != "hello":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ s = "hello world"
|
|||
|
||||
b = lib_std_wstring.B("hi")
|
||||
|
||||
b.name = u"hello"
|
||||
b.name = lib_std_wstring.wstring(u"hello")
|
||||
if b.name != "hello":
|
||||
raise RuntimeError, "bad string mapping"
|
||||
|
||||
|
|
|
|||
|
|
@ -179,7 +179,7 @@ if def_namet != 'ho\0la':
|
|||
|
||||
t.var_namet = def_namet
|
||||
if t.var_namet != def_namet:
|
||||
print "bad namet", t.var_namet
|
||||
print "bad namet", t.var_namet, def_namet
|
||||
raise RuntimeError
|
||||
|
||||
t.var_namet = 'holac'
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue