コード例 #1
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4am(self):
     assert not _is_rest_comment([
       (_GROUP.block_comment_start, 0, '/*comment\n')], False, c_lexer)
コード例 #2
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ab(self):
     assert _is_rest_comment([
       (_GROUP.inline_comment, 0, '//\n')], False, c_lexer)
コード例 #3
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ae(self):
     assert not _is_rest_comment(
         [(_GROUP.inline_comment, 0, '//comment\n')], False, c_lexer)
コード例 #4
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4au(self):
     assert not _is_rest_comment([
       (_GROUP.whitespace, 0, '  '),
       (_GROUP.block_comment, 0, '/* comment */'),
       (_GROUP.other, 0, 'foo();')], False, c_lexer)
コード例 #5
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aw(self):
     assert _is_rest_comment([
       (_GROUP.inline_comment, 0, '#'),
       (_GROUP.whitespace, 0, '\n')], True, py_lexer)
コード例 #6
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ap(self):
     assert not _is_rest_comment([
       (_GROUP.block_comment_body, 0, 'comment\n')], False, c_lexer)
コード例 #7
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ar(self):
     assert not _is_rest_comment([
       (_GROUP.block_comment_end, 0, 'comment */')], False, c_lexer)
コード例 #8
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ap(self):
     assert not _is_rest_comment(
         [(_GROUP.block_comment_body, 0, 'comment\n')], False, c_lexer)
コード例 #9
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aq(self):
     assert _is_rest_comment([(_GROUP.block_comment_end, 0, 'comment */')],
                             True, c_lexer)
コード例 #10
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4an(self):
     assert not _is_rest_comment(
         [(_GROUP.whitespace, 0, '  '),
          (_GROUP.block_comment_start, 0, '/*comment\n')], False, c_lexer)
コード例 #11
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ao1(self):
     assert _is_rest_comment([(_GROUP.block_comment_body, 0, '\n')], True,
                             c_lexer)
コード例 #12
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4am(self):
     assert not _is_rest_comment(
         [(_GROUP.block_comment_start, 0, '/*comment\n')], False, c_lexer)
コード例 #13
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ai(self):
     assert not _is_rest_comment(
         [(_GROUP.block_comment, 0, '/*comment */')], False, c_lexer)
コード例 #14
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4af(self):
     assert not _is_rest_comment(
         [(_GROUP.whitespace, 0, '  '),
          (_GROUP.inline_comment, 0, '//comment\n')], False, c_lexer)
コード例 #15
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4an(self):
     assert not _is_rest_comment([
       (_GROUP.whitespace, 0, '  '),
       (_GROUP.block_comment_start, 0, '/*comment\n')], False, c_lexer)
コード例 #16
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ar(self):
     assert not _is_rest_comment(
         [(_GROUP.block_comment_end, 0, 'comment */')], False, c_lexer)
コード例 #17
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ao1(self):
     assert _is_rest_comment([
       (_GROUP.block_comment_body, 0, '\n')], True, c_lexer)
コード例 #18
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4at(self):
     assert _is_rest_comment([(_GROUP.whitespace, 0, '  '),
                              (_GROUP.block_comment, 0, '/* comment1 */'),
                              (_GROUP.whitespace, 0, '  '),
                              (_GROUP.block_comment, 0, '/*comment2 */')],
                             False, c_lexer)
コード例 #19
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aq(self):
     assert _is_rest_comment([
       (_GROUP.block_comment_end, 0, 'comment */')], True, c_lexer)
コード例 #20
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4au(self):
     assert not _is_rest_comment(
         [(_GROUP.whitespace, 0, '  '),
          (_GROUP.block_comment, 0, '/* comment */'),
          (_GROUP.other, 0, 'foo();')], False, c_lexer)
コード例 #21
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4at(self):
     assert _is_rest_comment([
       (_GROUP.whitespace, 0, '  '),
       (_GROUP.block_comment, 0, '/* comment1 */'),
       (_GROUP.whitespace, 0, '  '),
       (_GROUP.block_comment, 0, '/*comment2 */')], False, c_lexer)
コード例 #22
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4av(self):
     assert not _is_rest_comment(
         [(_GROUP.block_comment_end, 0, 'comment */'),
          (_GROUP.other, 0, 'foo();')], True, c_lexer)
コード例 #23
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4av(self):
     assert not _is_rest_comment([
       (_GROUP.block_comment_end, 0, 'comment */'),
       (_GROUP.other, 0, 'foo();')], True, c_lexer)
コード例 #24
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aw(self):
     assert _is_rest_comment([(_GROUP.inline_comment, 0, '#'),
                              (_GROUP.whitespace, 0, '\n')], True, py_lexer)
コード例 #25
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aa1(self):
     assert not _is_rest_comment([
       (_GROUP.whitespace, 0, '\n')], False, c_lexer)
コード例 #26
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ai(self):
     assert not _is_rest_comment([
       (_GROUP.block_comment, 0, '/*comment */')], False, c_lexer)
コード例 #27
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4ad(self):
     assert _is_rest_comment([
       (_GROUP.whitespace, 0, '  '),
       (_GROUP.inline_comment, 0, '//\n')], False, c_lexer)
コード例 #28
0
ファイル: CodeToRest_test.py プロジェクト: gpa14/CodeChat
 def test_4aa1(self):
     assert not _is_rest_comment([(_GROUP.whitespace, 0, '\n')], False,
                                 c_lexer)