mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-14 06:03:58 +00:00
add use_tree_completion test
This commit is contained in:
parent
6033b66ce0
commit
1c61326ca0
1 changed files with 27 additions and 0 deletions
|
@ -8,6 +8,33 @@ fn check(ra_fixture: &str, expect: Expect) {
|
||||||
expect.assert_eq(&actual)
|
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]
|
#[test]
|
||||||
fn use_tree_start() {
|
fn use_tree_start() {
|
||||||
cov_mark::check!(unqualified_path_selected_only);
|
cov_mark::check!(unqualified_path_selected_only);
|
||||||
|
|
Loading…
Reference in a new issue