x = "hello" if li_std_string_extra.test_ccvalue(x) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_cvalue(x) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_value(x) != x: print x, li_std_string_extra.test_value(x) raise RuntimeError, "bad string mapping" if li_std_string_extra.test_const_reference(x) != x: raise RuntimeError, "bad string mapping" s = li_std_string_extra.string("he") #s += "ll" #s.append('o') s = s + "llo" if s != x: print s, x raise RuntimeError, "bad string mapping" if s[1:4] != x[1:4]: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_value(s) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_const_reference(s) != x:
if li_std_string_extra.test_ccvalue(x) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_cvalue(x) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_value(x) != x: print x, li_std_string_extra.test_value(x) raise RuntimeError, "bad string mapping" if li_std_string_extra.test_const_reference(x) != x: raise RuntimeError, "bad string mapping" s = li_std_string_extra.string("he") #s += "ll" # s.append('o') s = s + "llo" if s != x: print s, x raise RuntimeError, "bad string mapping" if s[1:4] != x[1:4]: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_value(s) != x: raise RuntimeError, "bad string mapping" if li_std_string_extra.test_const_reference(s) != x: