Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/ide_db/src/helpers/insert_use/tests.rs')
| -rw-r--r-- | crates/ide_db/src/helpers/insert_use/tests.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ide_db/src/helpers/insert_use/tests.rs b/crates/ide_db/src/helpers/insert_use/tests.rs index abd5e64c54..887319e924 100644 --- a/crates/ide_db/src/helpers/insert_use/tests.rs +++ b/crates/ide_db/src/helpers/insert_use/tests.rs @@ -402,6 +402,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( "foo::bar::Baz", |