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
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
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
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
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
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
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
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