mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-26 13:03:31 +00:00
Merge #7180
7180: More readable test r=matklad a=matklad
bors r+
🤖
Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
1b2d80dfa7
1 changed files with 12 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue