Add a test

This commit is contained in:
Aleksey Kladov 2020-03-23 20:57:42 +01:00
parent b605271d7f
commit 3bd119a4c1

View File

@ -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
",
);
}