if myStructure.MemberString2 != "member string 2": raise RuntimeError, "MemberString2 test 1" myStructure.MemberString2 = s if myStructure.MemberString2 != s: raise RuntimeError, "MemberString2 test 2" if myStructure.ConstMemberString != "const member string": raise RuntimeError, "ConstMemberString test" if li_std_string_extra.cvar.Structure_StaticMemberString2 != "static member string 2": raise RuntimeError, "StaticMemberString2 test 1" li_std_string_extra.cvar.Structure_StaticMemberString2 = s if li_std_string_extra.cvar.Structure_StaticMemberString2 != s: raise RuntimeError, "StaticMemberString2 test 2" if li_std_string_extra.cvar.Structure_ConstStaticMemberString != "const static member string": raise RuntimeError, "ConstStaticMemberString test" if li_std_string_extra.test_reference_input("hello") != "hello": raise RuntimeError s = li_std_string_extra.test_reference_inout("hello") if s != "hellohello": raise RuntimeError if li_std_string_extra.stdstring_empty() != "": raise RuntimeError if li_std_string_extra.c_empty() != "": raise RuntimeError if li_std_string_extra.c_null() != None: raise RuntimeError
if myStructure.MemberString2 != s: raise RuntimeError, "MemberString2 test 2" if myStructure.ConstMemberString != "const member string": raise RuntimeError, "ConstMemberString test" if li_std_string_extra.cvar.Structure_StaticMemberString2 != "static member string 2": raise RuntimeError, "StaticMemberString2 test 1" li_std_string_extra.cvar.Structure_StaticMemberString2 = s if li_std_string_extra.cvar.Structure_StaticMemberString2 != s: raise RuntimeError, "StaticMemberString2 test 2" if li_std_string_extra.cvar.Structure_ConstStaticMemberString != "const static member string": raise RuntimeError, "ConstStaticMemberString test" if li_std_string_extra.test_reference_input("hello") != "hello": raise RuntimeError s = li_std_string_extra.test_reference_inout("hello") if s != "hellohello": raise RuntimeError if li_std_string_extra.stdstring_empty() != "": raise RuntimeError if li_std_string_extra.c_empty() != "": raise RuntimeError if li_std_string_extra.c_null() != None: raise RuntimeError