mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 06:11:35 +00:00
Some cleanup and additional tests
This commit is contained in:
parent
d571d26955
commit
c5852f422f
7 changed files with 138 additions and 31 deletions
|
@ -65,6 +65,17 @@ mod tests {
|
|||
check_completion(code, expected_completions, CompletionKind::Reference);
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[ignore] // should not complete foo, which currently doesn't work
|
||||
fn dont_complete_current_use() {
|
||||
check_reference_completion(
|
||||
"dont_complete_current_use",
|
||||
r"
|
||||
use self::foo<|>;
|
||||
",
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn completes_mod_with_docs() {
|
||||
check_reference_completion(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue