Skip to content

Commit 1c61326

Browse files
committed
add use_tree_completion test
1 parent 6033b66 commit 1c61326

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

crates/ide-completion/src/tests/use_tree.rs

+27
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,33 @@ fn check(ra_fixture: &str, expect: Expect) {
88
expect.assert_eq(&actual)
99
}
1010

11+
#[test]
12+
fn use_tree_completion() {
13+
check(
14+
r#"
15+
struct implThing;
16+
17+
use crate::{impl$0};
18+
"#,
19+
expect![[r#"
20+
st implThing implThing
21+
kw self
22+
"#]],
23+
);
24+
25+
check(
26+
r#"
27+
struct implThing;
28+
29+
use crate::{impl$0;
30+
"#,
31+
expect![[r#"
32+
st implThing implThing
33+
kw self
34+
"#]],
35+
);
36+
}
37+
1138
#[test]
1239
fn use_tree_start() {
1340
cov_mark::check!(unqualified_path_selected_only);

0 commit comments

Comments
 (0)