add use_tree_completion test

This commit is contained in:
Young-Flash 2024-01-18 17:35:01 +08:00
parent 6033b66ce0
commit 1c61326ca0

View file

@ -8,6 +8,33 @@ fn check(ra_fixture: &str, expect: Expect) {
expect.assert_eq(&actual)
}
#[test]
fn use_tree_completion() {
check(
r#"
struct implThing;
use crate::{impl$0};
"#,
expect![[r#"
st implThing implThing
kw self
"#]],
);
check(
r#"
struct implThing;
use crate::{impl$0;
"#,
expect![[r#"
st implThing implThing
kw self
"#]],
);
}
#[test]
fn use_tree_start() {
cov_mark::check!(unqualified_path_selected_only);