示例#1
0
 def fn(c):
     s1 = ootype.oostring("xy", -1)
     s2 = ootype.oostring("x" + chr(c), -1)
     assert (hash_whatever(ootype.typeOf(s1), s1) ==
             hash_whatever(ootype.typeOf(s2), s2))
     assert equal_whatever(ootype.typeOf(s1), s1, s2)
示例#2
0
 def fn(c):
     s1 = ootype.oostring("xy", -1)
     s2 = ootype.oostring("x" + chr(c), -1)
     assert (hash_whatever(ootype.typeOf(s1),
                           s1) == hash_whatever(ootype.typeOf(s2), s2))
     assert equal_whatever(ootype.typeOf(s1), s1, s2)
示例#3
0
 def fn(x):
     assert hash_whatever(lltype.typeOf(x), x) == 42
     assert (hash_whatever(lltype.typeOf(s1), s1) ==
             hash_whatever(lltype.typeOf(s2), s2))
     assert equal_whatever(lltype.typeOf(s1), s1, s2)
示例#4
0
 def fn(x):
     assert hash_whatever(lltype.typeOf(x), x) == 42
     assert (hash_whatever(lltype.typeOf(s1),
                           s1) == hash_whatever(lltype.typeOf(s2), s2))
     assert equal_whatever(lltype.typeOf(s1), s1, s2)