def test_get_tokens_pre_increment_operators(self):
        for operator in ('++', '--'):
            #                        012345
            tokens = self.get_tokens('%sFOO' % operator)
            self.assertEqual(2, len(tokens), tokens)
            self.assertEqual(Syntax(operator, 0, 2), tokens[0])
            self.assertEqual(Name('FOO', 2, 5), tokens[1])

            #                        012345
            tokens = self.get_tokens('%s FOO' % operator)
            self.assertEqual(2, len(tokens), tokens)
            self.assertEqual(Syntax(operator, 0, 2), tokens[0])
            self.assertEqual(Name('FOO', 3, 6), tokens[1])
dataset/ETHPy150Open myint/cppclean/test_tokenize.py/TokenizeTest.test_get_tokens_pre_increment_operators/original