From edf03548e365f2ebd89517713aac9b531b43ed24 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 6 Jan 2021 18:36:06 +0300 Subject: More readable test --- crates/rust-analyzer/tests/rust-analyzer/main.rs | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'crates') 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 { ), work_done_progress_params: Default::default(), }); - let value = res.get("contents").unwrap().get("value").unwrap().to_string(); - expect![[r#""\n```rust\nfoo::Bar\n```\n\n```rust\nfn bar()\n```""#]].assert_eq(&value); + let value = res.get("contents").unwrap().get("value").unwrap().as_str().unwrap(); + + expect![[r#" + + ```rust + foo::Bar + ``` + + ```rust + fn bar() + ```"#]] + .assert_eq(&value); } -- cgit v1.2.3