Lines Matching refs:assertLexerError
424 def assertLexerError(self, str, error_like): member in TestCLexerErrors
443 self.assertLexerError('@', ERR_ILLEGAL_CHAR)
444 self.assertLexerError('`', ERR_ILLEGAL_CHAR)
445 self.assertLexerError('\\', ERR_ILLEGAL_CHAR)
448 self.assertLexerError('029', ERR_OCTAL)
449 self.assertLexerError('012345678', ERR_OCTAL)
452 self.assertLexerError("'", ERR_UNMATCHED_QUOTE)
453 self.assertLexerError("'b\n", ERR_UNMATCHED_QUOTE)
454 self.assertLexerError("'\\xaa\n'", ERR_UNMATCHED_QUOTE)
456 self.assertLexerError(r"'123\12a'", ERR_INVALID_CCONST)
457 self.assertLexerError(r"'123\xabg'", ERR_INVALID_CCONST)
458 self.assertLexerError("''", ERR_INVALID_CCONST)
459 self.assertLexerError("'abcjx'", ERR_INVALID_CCONST)
460 self.assertLexerError(r"'\*'", ERR_INVALID_CCONST)
463 self.assertLexerError(r'"jx\`"', ERR_STRING_ESCAPE)
464 self.assertLexerError(r'"hekllo\* on ix"', ERR_STRING_ESCAPE)
465 self.assertLexerError(r'L"hekllo\* on ix"', ERR_STRING_ESCAPE)
467 …self.assertLexerError(r'"\123\123\123\123\123\123\123\123\123\123\123\123\123\123\123\123\123\123\…
468 …self.assertLexerError(r'"\xf1\x23\xf1\x23\xf1\x23\xf1\x23\xf1\x23\xf1\x23\xf1\x23\xf1\x23\xf1\x23\…
470 …self.assertLexerError(r'"\123\123\123\123\123\123\123\123\123\123\123\123\123\123\123\`\123\123\12…
471 …self.assertLexerError(r'"\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\x23\`\x23\x23\x2…
474 self.assertLexerError('#line "ka"', ERR_FILENAME_BEFORE_LINE)
475 self.assertLexerError('#line df', ERR_INVALID_LINE_DIRECTIVE)
476 self.assertLexerError('#line \n', ERR_LINENUM_MISSING)