mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-25 11:17:13 +00:00
Add a test for multi-single-line comments as well
This commit is contained in:
parent
1c866573cb
commit
7d10752299
@ -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…
x
Reference in New Issue
Block a user