Lines Matching defs:check
561 def check(s, base=None):
572 check('\xbd')
573 check('123\xbd')
574 check(' 123 456 ')
576 check('123\x00')
578 check('123\x00', 10)
579 check('123\x00 245', 20)
580 check('123\x00 245', 16)
581 check('123\x00245', 20)
582 check('123\x00245', 16)
584 check(b'123\x00')
585 check(b'123\x00', 10)
587 check(b'123\xbd')
588 check(b'123\xbd', 10)
590 check('123\ud800')
591 check('123\ud800', 10)
635 def check(self, i, base=None):
645 self.check('1' * (maxdigits + 1))
646 self.check(' ' + '1' * (maxdigits + 1))
647 self.check('1' * (maxdigits + 1) + ' ')
648 self.check('+' + '1' * (maxdigits + 1))
649 self.check('-' + '1' * (maxdigits + 1))
650 self.check('1' * (maxdigits + 1))
678 # We test with the limit almost at the size needed to check performance.
679 # The performant limit check is slightly fuzzy, give it a some room.
757 self.check(f'{s}111')
758 self.check(f'{s_}_111')