/external/python/cpython3/Lib/test/ |
D | string_tests.py | 58 def checkequal(self, result, obj, methodname, *args, **kwargs): member in BaseTest 96 self.checkequal(3, 'aaa', 'count', 'a') 97 self.checkequal(0, 'aaa', 'count', 'b') 98 self.checkequal(3, 'aaa', 'count', 'a') 99 self.checkequal(0, 'aaa', 'count', 'b') 100 self.checkequal(3, 'aaa', 'count', 'a') 101 self.checkequal(0, 'aaa', 'count', 'b') 102 self.checkequal(0, 'aaa', 'count', 'b') 103 self.checkequal(2, 'aaa', 'count', 'a', 1) 104 self.checkequal(0, 'aaa', 'count', 'a', 10) [all …]
|
D | test_userstring.py | 20 def checkequal(self, result, object, methodname, *args, **kwargs): member in UserStringTest 55 self.checkequal(b'hello', 'hello', 'encode') 57 self.checkequal(b'\xf0\xa3\x91\x96', '\U00023456', 'encode') 62 self.checkequal(b'hello', 'hello', 'encode', None, None) 64 self.checkequal(b'\xf0\xa3\x91\x96', '\U00023456', 'encode', None, None)
|
D | test_unicode.py | 191 self.checkequal(10, '\u0102' + 'a' * 10, 'count', 'a') 192 self.checkequal(10, '\U00100304' + 'a' * 10, 'count', 'a') 193 self.checkequal(10, '\U00100304' + '\u0102' * 10, 'count', '\u0102') 194 self.checkequal(0, 'a' * 10, 'count', '\u0102') 195 self.checkequal(0, 'a' * 10, 'count', '\U00100304') 196 self.checkequal(0, '\u0102' * 10, 'count', '\U00100304') 197 self.checkequal(10, '\u0102' + 'a_' * 10, 'count', 'a_') 198 self.checkequal(10, '\U00100304' + 'a_' * 10, 'count', 'a_') 199 self.checkequal(10, '\U00100304' + '\u0102_' * 10, 'count', '\u0102_') 200 self.checkequal(0, 'a' * 10, 'count', 'a\u0102') [all …]
|
D | test_richcmp.py | 102 def checkequal(self, opname, a, b, expres): member in VectorTest 126 self.checkequal("lt", a, b, [True, True, False, False, False]) 127 self.checkequal("le", a, b, [True, True, True, False, False]) 128 self.checkequal("eq", a, b, [False, False, True, False, False]) 129 self.checkequal("ne", a, b, [True, True, False, True, True ]) 130 self.checkequal("gt", a, b, [False, False, False, True, True ]) 131 self.checkequal("ge", a, b, [False, False, True, True, True ])
|
/external/python/cpython2/Lib/test/ |
D | string_tests.py | 52 def checkequal(self, result, object, methodname, *args): member in CommonTest 94 self.checkequal(' hello ', ' hello ', 'capitalize') 95 self.checkequal('Hello ', 'Hello ','capitalize') 96 self.checkequal('Hello ', 'hello ','capitalize') 97 self.checkequal('Aaaa', 'aaaa', 'capitalize') 98 self.checkequal('Aaaa', 'AaAa', 'capitalize') 103 self.checkequal(3, 'aaa', 'count', 'a') 104 self.checkequal(0, 'aaa', 'count', 'b') 105 self.checkequal(3, 'aaa', 'count', 'a') 106 self.checkequal(0, 'aaa', 'count', 'b') [all …]
|
D | test_string.py | 14 def checkequal(self, result, object, methodname, *args): member in StringTest 32 self.checkequal('a b c d', ['a', 'b', 'c', 'd'], 'join', ' ') 33 self.checkequal('abcd', ('a', 'b', 'c', 'd'), 'join', '') 34 self.checkequal('w x y z', string_tests.Sequence(), 'join', ' ') 35 self.checkequal('abc', ('abc',), 'join', 'a') 36 self.checkequal('z', UserList(['z']), 'join', 'a') 38 self.checkequal(unicode('a.b.c'), ['a', 'b', 'c'], 'join', unicode('.')) 39 self.checkequal(unicode('a.b.c'), [unicode('a'), 'b', 'c'], 'join', '.') 40 self.checkequal(unicode('a.b.c'), ['a', unicode('b'), 'c'], 'join', '.') 41 self.checkequal(unicode('a.b.c'), ['a', 'b', unicode('c')], 'join', '.') [all …]
|
D | test_richcmp.py | 102 def checkequal(self, opname, a, b, expres): member in VectorTest 126 self.checkequal("lt", a, b, [True, True, False, False, False]) 127 self.checkequal("le", a, b, [True, True, True, False, False]) 128 self.checkequal("eq", a, b, [False, False, True, False, False]) 129 self.checkequal("ne", a, b, [True, True, False, True, True ]) 130 self.checkequal("gt", a, b, [False, False, False, True, True ]) 131 self.checkequal("ge", a, b, [False, False, True, True, True ])
|
D | test_userstring.py | 21 def checkequal(self, result, object, methodname, *args): member in UserStringTest
|
D | test_unicode.py | 286 self.checkequal(u'\u1ffc\u1ff3\u1ff3\u1ff3', 289 self.checkequal(u'\u24c5\u24e8\u24e3\u24d7\u24de\u24dd', 291 self.checkequal(u'\u24c5\u24e8\u24e3\u24d7\u24de\u24dd', 293 self.checkequal(u'\u2160\u2171\u2172', 295 self.checkequal(u'\u2160\u2171\u2172', 298 self.checkequal(u'\u019b\u1d00\u1d86\u0221\u1fb7',
|