aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2021-01-06 15:36:37 +0000
committerGitHub <[email protected]>2021-01-06 15:36:37 +0000
commit1b2d80dfa753b4fa834ab6987399738064cfd7a4 (patch)
tree6f62dcce90c1be33affb7452cfebbe423703014b
parentd8dfcc2c0cf87162ec5791121f484dd7fde8d17d (diff)
parentedf03548e365f2ebd89517713aac9b531b43ed24 (diff)
Merge #7180
7180: More readable test r=matklad a=matklad bors r+ 🤖 Co-authored-by: Aleksey Kladov <[email protected]>
-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}