def testC(self):
        lexer = CompletionLexer(CLexer())
        self.assertEquals(lexer.get_context("foo.bar"), [ "foo", "bar" ])
        self.assertEquals(lexer.get_context("foo->bar"), [ "foo", "bar" ])

        lexer = CompletionLexer(CppLexer())
        self.assertEquals(lexer.get_context("Foo::Bar"), [ "Foo", "Bar" ])
Does the CompletionLexer work for C/C++?
dataset/ETHPy150Open ipython/ipython-py3k/IPython/frontend/qt/console/tests/test_completion_lexer.py/TestCompletionLexer.testC