aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_ide/src/hover.rs
diff options
context:
space:
mode:
authorsucccubbus <[email protected]>2019-12-13 18:54:07 +0000
committersucccubbus <[email protected]>2019-12-13 18:54:07 +0000
commit6c42eb1930f179bca1867eebcbf82c7bc10dd4c5 (patch)
treed89b9349b15960db6ef24722f9161f5b937402da /crates/ra_ide/src/hover.rs
parentf54fef85aa88db44b1d3f6436551595dcb98ab83 (diff)
add failing test
Diffstat (limited to 'crates/ra_ide/src/hover.rs')
-rw-r--r--crates/ra_ide/src/hover.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/crates/ra_ide/src/hover.rs b/crates/ra_ide/src/hover.rs
index 24f7eeed3..b2909bf38 100644
--- a/crates/ra_ide/src/hover.rs
+++ b/crates/ra_ide/src/hover.rs
@@ -505,6 +505,13 @@ fn func(foo: i32) { if true { <|>foo; }; }
505 } 505 }
506 506
507 #[test] 507 #[test]
508 fn hover_for_param_edge() {
509 let (analysis, position) = single_file_with_position("fn func(<|>foo: i32) {}");
510 let hover = analysis.hover(position).unwrap().unwrap();
511 assert_eq!(trim_markup_opt(hover.info.first()), Some("i32"));
512 }
513
514 #[test]
508 fn test_type_of_for_function() { 515 fn test_type_of_for_function() {
509 let (analysis, range) = single_file_with_range( 516 let (analysis, range) = single_file_with_range(
510 " 517 "