aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_analysis/tests
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_analysis/tests')
-rw-r--r--crates/ra_analysis/tests/tests.rs11
1 files changed, 11 insertions, 0 deletions
diff --git a/crates/ra_analysis/tests/tests.rs b/crates/ra_analysis/tests/tests.rs
index 9e2478d9e..22d27cdbe 100644
--- a/crates/ra_analysis/tests/tests.rs
+++ b/crates/ra_analysis/tests/tests.rs
@@ -378,6 +378,17 @@ fn test_find_all_refs_for_param_inside() {
378} 378}
379 379
380#[test] 380#[test]
381fn test_find_all_refs_for_fn_param() {
382 let code = r#"
383 fn foo(i<|> : u32) -> u32 {
384 i
385 }"#;
386
387 let refs = get_all_refs(code);
388 assert_eq!(refs.len(), 2);
389}
390
391#[test]
381fn test_complete_crate_path() { 392fn test_complete_crate_path() {
382 let (analysis, position) = analysis_and_position(" 393 let (analysis, position) = analysis_and_position("
383 //- /lib.rs 394 //- /lib.rs