test: Make imported_external test that the full path is replaced

This commit is contained in:
Steven Joruk 2022-03-13 13:25:06 +00:00
parent 2e00fa208f
commit 1981a3dc65

View file

@ -723,24 +723,22 @@ fn main() {
} }
#[test] #[test]
fn imported_external() { fn full_path_type_is_replaced() {
check_assist( check_assist(
inline_type_alias, inline_type_alias,
r#" r#"
mod foo { mod foo {
type A = String; pub type A = String;
} }
fn main() { fn main() {
use foo::A; let a: foo::$0A;
let a: $0A;
} }
"#, "#,
r#" r#"
mod foo { mod foo {
type A = String; pub type A = String;
} }
fn main() { fn main() {
use foo::A;
let a: String; let a: String;
} }
"#, "#,