mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
Add a test for multi-single-line comments as well
This commit is contained in:
parent
1c866573cb
commit
7d10752299
1 changed files with 15 additions and 0 deletions
|
@ -401,6 +401,21 @@ use foo::bar::Baz;"#,
|
|||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn inserts_after_multiple_single_line_comments() {
|
||||
check_none(
|
||||
"foo::bar::Baz",
|
||||
"// Represents a possible license header and/or general module comments
|
||||
// Second single-line comment
|
||||
// Third single-line comment",
|
||||
r#"// Represents a possible license header and/or general module comments
|
||||
// Second single-line comment
|
||||
// Third single-line comment
|
||||
|
||||
use foo::bar::Baz;"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn inserts_before_single_line_item_comments() {
|
||||
check_none(
|
||||
|
|
Loading…
Reference in a new issue