aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2021-01-06 15:36:06 +0000
committerAleksey Kladov <[email protected]>2021-01-06 15:36:13 +0000
commitedf03548e365f2ebd89517713aac9b531b43ed24 (patch)
tree6f62dcce90c1be33affb7452cfebbe423703014b /crates
parentec9e2f50f46258fb03de0ffdebfe5d0c62c3f90e (diff)
More readable test
Diffstat (limited to 'crates')
-rw-r--r--crates/rust-analyzer/tests/rust-analyzer/main.rs14
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}