Home
last modified time | relevance | path

Searched refs:maxint (Results 1 – 25 of 102) sorted by relevance

12345

/external/python/cpython2/Lib/test/
Dtest_xrange.py111 self.assertEqual(len(xrange(0, sys.maxint, sys.maxint-1)), 2)
113 self.assertRaises(OverflowError, xrange, -sys.maxint, sys.maxint)
114 self.assertRaises(OverflowError, xrange, 0, 2*sys.maxint)
116 r = xrange(-sys.maxint, sys.maxint, 2)
117 self.assertEqual(len(r), sys.maxint)
118 self.assertRaises(OverflowError, xrange, -sys.maxint-1, sys.maxint, 2)
129 M = min(sys.maxint, sys.maxsize)
155 M = min(sys.maxint, sys.maxsize)
Dtest_sysconfig.py147 maxint = sys.maxint
149 sys.maxint = 2147483647
151 sys.maxint = 9223372036854775807
154 sys.maxint = maxint
167 maxint = sys.maxint
169 sys.maxint = 2147483647
171 sys.maxint = 9223372036854775807
174 sys.maxint = maxint
Dstring_tests.py126 self.checkequal(0, '', 'count', '', sys.maxint, 0)
130 self.checkequal(0, '', 'count', 'xx', sys.maxint, 0)
183 self.checkequal(-1, '', 'find', '', sys.maxint, 0)
187 self.checkequal(-1, '', 'find', 'xx', sys.maxint, 0)
328 if sys.maxint < (1 << 32) and struct.calcsize('P') == 4:
330 '\ta\n\tb', 'expandtabs', sys.maxint)
343 sys.maxint-1)
376 sys.maxint-2)
397 sys.maxint-10)
442 sys.maxint-20)
[all …]
Dtest_enumerate.py237 enum = lambda self, i: enumerate(i, start=sys.maxint+1)
238 seq, res = 'abc', [(sys.maxint+1,'a'), (sys.maxint+2,'b'),
239 (sys.maxint+3,'c')]
Dtest_int.py19 (repr(sys.maxint), sys.maxint),
100 s = repr(-1-sys.maxint)
102 self.assertEqual(x+1, -sys.maxint)
105 self.assertEqual(int(s[1:]), sys.maxint+1)
117 x = -1-sys.maxint
Dtest_long.py53 (repr(sys.maxint), sys.maxint),
577 hugepos = sys.maxint
657 special = [0, 1, 2, 3, sys.maxint-1, sys.maxint, sys.maxint+1]
658 sqrt = int(math.sqrt(sys.maxint))
883 cases.extend([0, 1, 2, sys.maxint, float(sys.maxint)])
Dtest_compile.py296 if sys.maxint == 2147483647:
301 elif sys.maxint == 9223372036854775807:
310 self.assertIsInstance(eval("%s" % (-sys.maxint - 1)), int)
311 self.assertIsInstance(eval("%s" % (-sys.maxint - 2)), long)
313 if sys.maxint == 9223372036854775807:
Dseq_tests.py323 if sys.maxint <= 2147483647:
403 self.assertEqual(a.index(0, -4*sys.maxint, 4*sys.maxint), 2)
404 self.assertRaises(ValueError, a.index, 0, 4*sys.maxint,-4*sys.maxint)
Dtest_index.py4 from sys import maxint
262 return maxint # cannot return long here
276 return maxint # cannot return long here
284 self.assertEqual(x[self.neg:self.pos], (maxint+minsize, maxsize))
Dtest_bytes.py51 self.assertRaises(IndexError, lambda: b[sys.maxint])
52 self.assertRaises(IndexError, lambda: b[sys.maxint+1])
56 self.assertRaises(IndexError, lambda: b[-sys.maxint])
57 self.assertRaises(IndexError, lambda: b[-sys.maxint-1])
58 self.assertRaises(IndexError, lambda: b[-sys.maxint-2])
96 self.assertRaises(ValueError, self.type2test, [-sys.maxint])
97 self.assertRaises(ValueError, self.type2test, [-sys.maxint-1])
98 self.assertRaises(ValueError, self.type2test, [-sys.maxint-2])
102 self.assertRaises(ValueError, self.type2test, [sys.maxint])
103 self.assertRaises(ValueError, self.type2test, [sys.maxint+1])
Dtest_itertools.py375 for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5):
382 for value in -3, 3, sys.maxint-5, sys.maxint+5:
434 for i in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 10, sys.maxint-5, sys.maxint+5):
435 for j in (-sys.maxint-5, -sys.maxint+5 ,-10, -1, 0, 1, 10, sys.maxint-5, sys.maxint+5):
/external/toolchain-utils/bestflags/
Dflags_test.py33 start = random.randint(1, sys.maxint - 1)
34 end = random.randint(start + 1, sys.maxint)
73 start = random.randint(1, sys.maxint - 1)
74 end = random.randint(start + 1, sys.maxint)
89 value = random.randint(1, sys.maxint - 1)
Dtask.py285 self._build_cost = sys.maxint if cost == ERROR_STRING else float(cost)
335 self._exe_cost = sys.maxint if (cost == ERROR_STRING) else float(cost)
/external/icu/icu4c/source/test/intltest/
Dpunyref.c105 static const punycode_uint maxint = (punycode_uint) (-1); variable
170 for (m = maxint, j = 0; j < input_length; ++j) { in punycode_encode()
179 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in punycode_encode()
264 if (digit > (maxint - i) / w) return punycode_overflow; in punycode_decode()
269 if (w > maxint / (base - t)) return punycode_overflow; in punycode_decode()
278 if (i / (out + 1) > maxint - n) return punycode_overflow; in punycode_decode()
/external/python/cpython2/Demo/tkinter/guido/
Dss1.py79 self.clearcells(0, y1, sys.maxint, y2)
82 self.clearcells(x1, 0, x2, sys.maxint)
113 self.movecells(0, y, sys.maxint, sys.maxint, 0, n)
119 self.movecells(0, y2+1, sys.maxint, sys.maxint, 0, y1-y2-1)
123 self.movecells(x, 0, sys.maxint, sys.maxint, n, 0)
129 self.movecells(x2+1, 0, sys.maxint, sys.maxint, x1-x2-1, 0)
628 self.setcorner(sys.maxint, sys.maxint)
633 self.setcorner(x, sys.maxint)
639 self.setcorner(x, sys.maxint)
644 self.setcorner(sys.maxint, y)
[all …]
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/stringprep/
DPunycodeReference.java116 private static long maxint = 0xFFFFFFFFL; field in PunycodeReference
177 for (m = maxint, j = 0; j < input_length; ++j) { in encode()
186 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode()
346 if (digit > (maxint - i) / w) return punycode_overflow; in decode()
351 if (w > maxint / (base - t)) return punycode_overflow; in decode()
360 if (i / (out + 1) > maxint - n) return punycode_overflow; in decode()
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/stringprep/
DPunycodeReference.java117 private static long maxint = 0xFFFFFFFFL; field in PunycodeReference
178 for (m = maxint, j = 0; j < input_length; ++j) { in encode()
187 if (m - n > (maxint - delta) / (h + 1)) return punycode_overflow; in encode()
347 if (digit > (maxint - i) / w) return punycode_overflow; in decode()
352 if (w > maxint / (base - t)) return punycode_overflow; in decode()
361 if (i / (out + 1) > maxint - n) return punycode_overflow; in decode()
/external/python/cpython2/Lib/
DUserString.py65 def count(self, sub, start=0, end=sys.maxint):
83 def endswith(self, suffix, start=0, end=sys.maxint):
87 def find(self, sub, start=0, end=sys.maxint):
89 def index(self, sub, start=0, end=sys.maxint):
109 def rfind(self, sub, start=0, end=sys.maxint):
111 def rindex(self, sub, start=0, end=sys.maxint):
123 def startswith(self, prefix, start=0, end=sys.maxint):
Dpopen2.py26 if inst.poll(_deadstate=sys.maxint) >= 0:
76 self.poll(_deadstate=sys.maxint)
/external/clang/test/PCH/
Dstmts.h93 #define maxint(a,b) ({int _a = (a), _b = (b); _a > _b ? _a : _b; }) macro
95 return maxint(++x, --y); in weird_max()
/external/python/cpython2/Lib/ctypes/test/
Dtest_memfunctions.py14 lambda: wstring_at(u"foo", sys.maxint - 1))
16 lambda: string_at("foo", sys.maxint - 1))
/external/python/cpython2/Demo/parser/
Dtest_unparse.py123 self.check_roundtrip(str(-sys.maxint-1))
124 self.check_roundtrip("-(%s)" % (sys.maxint + 1))
/external/python/cpython2/Tools/scripts/
Dh2py.py107 UMAX = 2*(sys.maxint+1)
113 if val > sys.maxint:
/external/python/cpython2/Lib/multiprocessing/
Dheap.py216 assert 0 <= size < sys.maxint
242 assert 0 <= size < sys.maxint
/external/python/cpython2/Lib/email/
Dgenerator.py353 _width = len(repr(sys.maxint-1))
359 token = random.randrange(sys.maxint)

12345