diff options
-rw-r--r-- | crates/rust-analyzer/tests/rust-analyzer/main.rs | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/crates/rust-analyzer/tests/rust-analyzer/main.rs b/crates/rust-analyzer/tests/rust-analyzer/main.rs index 38d09f3ee..f5c5c63e5 100644 --- a/crates/rust-analyzer/tests/rust-analyzer/main.rs +++ b/crates/rust-analyzer/tests/rust-analyzer/main.rs | |||
@@ -732,6 +732,16 @@ pub fn foo(_input: TokenStream) -> TokenStream { | |||
732 | ), | 732 | ), |
733 | work_done_progress_params: Default::default(), | 733 | work_done_progress_params: Default::default(), |
734 | }); | 734 | }); |
735 | let value = res.get("contents").unwrap().get("value").unwrap().to_string(); | 735 | let value = res.get("contents").unwrap().get("value").unwrap().as_str().unwrap(); |
736 | expect![[r#""\n```rust\nfoo::Bar\n```\n\n```rust\nfn bar()\n```""#]].assert_eq(&value); | 736 | |
737 | expect![[r#" | ||
738 | |||
739 | ```rust | ||
740 | foo::Bar | ||
741 | ``` | ||
742 | |||
743 | ```rust | ||
744 | fn bar() | ||
745 | ```"#]] | ||
746 | .assert_eq(&value); | ||
737 | } | 747 | } |