Exemplo n.º 1
0
 def test_4k(self):
     assert _remove_comment_delim(_GROUP.block_comment_end,
       '*/', c_lexer) == ''
Exemplo n.º 2
0
 def test_4i(self):
     assert _remove_comment_delim(_GROUP.block_comment_start,
       '/*\n', c_lexer) == '\n'
Exemplo n.º 3
0
 def test_4j(self):
     assert _remove_comment_delim(_GROUP.block_comment_body,
       '\n', c_lexer) == '\n'
Exemplo n.º 4
0
 def test_4d(self):
     assert _remove_comment_delim(_GROUP.block_comment,
       '/* comment */', c_lexer) == ' comment '
Exemplo n.º 5
0
 def test_4h(self):
     assert _remove_comment_delim(_GROUP.inline_comment,
       '//\n', c_lexer) == '\n'
Exemplo n.º 6
0
 def test_4a(self):
     assert _remove_comment_delim(_GROUP.whitespace,
       '    ', c_lexer) == '    '
Exemplo n.º 7
0
 def test_4b(self):
     assert ( _remove_comment_delim(_GROUP.other, 'an_identifier', c_lexer)
             == 'an_identifier' )
Exemplo n.º 8
0
 def test_4j(self):
     assert _remove_comment_delim(_GROUP.block_comment_body, '\n',
                                  c_lexer) == '\n'
Exemplo n.º 9
0
 def test_4k(self):
     assert _remove_comment_delim(_GROUP.block_comment_end, '*/',
                                  c_lexer) == ''
Exemplo n.º 10
0
 def test_4i(self):
     assert _remove_comment_delim(_GROUP.block_comment_start, '/*\n',
                                  c_lexer) == '\n'
Exemplo n.º 11
0
 def test_4h(self):
     assert _remove_comment_delim(_GROUP.inline_comment, '//\n',
                                  c_lexer) == '\n'
Exemplo n.º 12
0
 def test_4d(self):
     assert _remove_comment_delim(_GROUP.block_comment, '/* comment */',
                                  c_lexer) == ' comment '
Exemplo n.º 13
0
 def test_4b(self):
     assert (_remove_comment_delim(_GROUP.other, 'an_identifier',
                                   c_lexer) == 'an_identifier')
Exemplo n.º 14
0
 def test_4a(self):
     assert _remove_comment_delim(_GROUP.whitespace, '    ',
                                  c_lexer) == '    '