def test_get_tokens_int_constants(self):
        #                        01234
        tokens = self.get_tokens('123;')
        self.assertEqual(2, len(tokens), tokens)
        self.assertEqual(Constant('123', 0, 3), tokens[0])
        self.assertEqual(Syntax(';', 3, 4), tokens[1])

        for suffix in ('l', 'u', 'ul', 'll', 'ull'):
            #                        0123456
            tokens = self.get_tokens('123%s;' % suffix)
            self.assertEqual(2, len(tokens), tokens)
            value = '123%s' % suffix
            size = len(value)
            self.assertEqual(Constant(value, 0, size), tokens[0])
            self.assertEqual(Syntax(';', size, size + 1), tokens[1])

            suffix = suffix.upper()

            #                        0123456
            tokens = self.get_tokens('123%s;' % suffix)
            self.assertEqual(2, len(tokens), tokens)
            value = '123%s' % suffix
            size = len(value)
            self.assertEqual(Constant(value, 0, size), tokens[0])
            self.assertEqual(Syntax(';', size, size + 1), tokens[1])
dataset/ETHPy150Open myint/cppclean/test_tokenize.py/TokenizeTest.test_get_tokens_int_constants/original