Beispiel #1
0
def test_multiline_comments_mixed(code_string, expected_count):
    """Checks that it can find multiline comments in mixtures"""
    assert comments.count_multiline_java_comment(code_string) == expected_count
Beispiel #2
0
def test_multiline_comments_zero_or_one(code_string, expected_count):
    """Checks that it finds zero or one multiline comments"""
    assert comments.count_multiline_java_comment(code_string) == expected_count
Beispiel #3
0
def test_multiline_comments_two(code_string, expected_count):
    """Checks that it has two or more multiline comments"""
    assert comments.count_multiline_java_comment(code_string) == expected_count
Beispiel #4
0
def test_multiline_java_comments_many(code_string, expected_count):
    """Check that it finds many multiline Python docstring comments."""
    count_of_multiline_java_comments, _ = comments.count_multiline_java_comment(
        code_string
    )
    assert count_of_multiline_java_comments == expected_count
Beispiel #5
0
def test_multiline_java_comments_mixed(code_string, expected_count):
    """Check that it can find multiline comments in mixtures."""
    count_of_multiline_java_comments, _ = comments.count_multiline_java_comment(
        code_string
    )
    assert count_of_multiline_java_comments == expected_count
Beispiel #6
0
def test_multiline_java_comments_two(code_string, expected_count):
    """Check that it has two or more multiline Java comments."""
    count_of_multiline_java_comments, _ = comments.count_multiline_java_comment(
        code_string
    )
    assert count_of_multiline_java_comments == expected_count
Beispiel #7
0
def test_multiline_java_comments_zero_or_one(code_string, expected_count):
    """Check that it finds zero or one multiline comments."""
    count_of_multiline_java_comments, _ = comments.count_multiline_java_comment(
        code_string
    )
    assert count_of_multiline_java_comments == expected_count
Beispiel #8
0
def test_multiline_java_comments_many(code_string, expected_count):
    """checks that it finds many multiline python docstring comments"""
    assert comments.count_multiline_java_comment(code_string) == expected_count