add/fix std_string test with %naturalvar
git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8627 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
parent
fd212896fd
commit
85dcc27edf
4 changed files with 50 additions and 165 deletions
|
|
@ -76,3 +76,29 @@ end
|
|||
result = test_reference_out()
|
||||
raise RuntimeError if result.is_a? String
|
||||
|
||||
|
||||
# Member Strings
|
||||
myStructure = Structure.new
|
||||
if (myStructure.MemberString2 != "member string 2")
|
||||
raise RuntimeError
|
||||
end
|
||||
s = "Hello"
|
||||
myStructure.MemberString2 = s
|
||||
if (myStructure.MemberString2 != s)
|
||||
raise RuntimeError
|
||||
end
|
||||
if (myStructure.ConstMemberString != "const member string")
|
||||
raise RuntimeError
|
||||
end
|
||||
|
||||
|
||||
if (Structure.StaticMemberString2 != "static member string 2")
|
||||
raise RuntimeError
|
||||
end
|
||||
Structure.StaticMemberString2 = s
|
||||
if (Structure.StaticMemberString2 != s)
|
||||
raise RuntimeError
|
||||
end
|
||||
if (Structure.ConstStaticMemberString != "const static member string")
|
||||
raise RuntimeError
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue