Add test for comments not directly next to items
This commit is contained in:
parent
7d10752299
commit
ba82cc7722
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user