Add a test
This commit is contained in:
parent
b605271d7f
commit
3bd119a4c1
1 changed files with 18 additions and 0 deletions
|
|
@ -179,6 +179,24 @@ use std::{fmt::Debug, fmt<|>::Display};
|
|||
",
|
||||
r"
|
||||
use std::{fmt<|>::{Display, Debug}};
|
||||
",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn removes_just_enough_whitespace() {
|
||||
check_assist(
|
||||
merge_imports,
|
||||
r"
|
||||
use foo<|>::bar;
|
||||
use foo::baz;
|
||||
|
||||
/// Doc comment
|
||||
",
|
||||
r"
|
||||
use foo<|>::{bar, baz};
|
||||
|
||||
/// Doc comment
|
||||
",
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue