Add test for comments not directly next to items

This commit is contained in:
Wesley Norris 2022-01-17 18:44:43 -05:00
parent 7d10752299
commit ba82cc7722

View File

@ -429,6 +429,23 @@ fn foo() {}"#,
);
}
#[test]
fn inserts_after_single_line_header_comments_and_before_item() {
check_none(
"foo::bar::Baz",
r#"// Represents a possible license header
// Line two of possible license header
fn foo() {}"#,
r#"// Represents a possible license header
// Line two of possible license header
use foo::bar::Baz;
fn foo() {}"#,
);
}
#[test]
fn inserts_after_multiline_inner_comments() {
check_none(