def test_get_tokens_hex_constants(self):
        #                        012345678901
        tokens = self.get_tokens('0xDeadBEEF;')
        self.assertEqual(2, len(tokens), tokens)
        self.assertEqual(Constant('0xDeadBEEF', 0, 10), tokens[0])
        self.assertEqual(Syntax(';', 10, 11), tokens[1])

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

            suffix = suffix.upper()

            #                        0123456789
            tokens = self.get_tokens('0xBEEF%s;' % suffix)
            self.assertEqual(2, len(tokens), tokens)
            value = '0xBEEF%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_hex_constants/swapped operands of `%`