Skip to content

Commit

Permalink
add use_tree_completion test
Browse files Browse the repository at this point in the history
  • Loading branch information
Young-Flash committed Jan 18, 2024
1 parent 6033b66 commit 1c61326
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions crates/ide-completion/src/tests/use_tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1c61326

Please sign in to comment.