aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_assists/src/tests
diff options
context:
space:
mode:
authorbors[bot] <26634292+bors[bot]@users.noreply.github.com>2020-05-06 17:04:47 +0100
committerGitHub <[email protected]>2020-05-06 17:04:47 +0100
commitfbc8bd3fdbbeed199901d6f387ab57d82aac6e04 (patch)
tree1817e29c0da2455f898d611e38914ff14cace26c /crates/ra_assists/src/tests
parente99447ffbf77b17674dc047e5a9f5aff9480ed1c (diff)
parent51c02ab84f6b88ba39e2d0a3ed22bea51114b05a (diff)
Merge #4043
4043: add Ok wrapping assist #3907 r=matklad a=bnjjj About issue #3907 close #3907 Co-authored-by: Benjamin Coenen <[email protected]>
Diffstat (limited to 'crates/ra_assists/src/tests')
-rw-r--r--crates/ra_assists/src/tests/generated.rs13
1 files changed, 13 insertions, 0 deletions
diff --git a/crates/ra_assists/src/tests/generated.rs b/crates/ra_assists/src/tests/generated.rs
index 7d35fa284..972dbd251 100644
--- a/crates/ra_assists/src/tests/generated.rs
+++ b/crates/ra_assists/src/tests/generated.rs
@@ -250,6 +250,19 @@ pub mod std { pub mod collections { pub struct HashMap { } } }
250} 250}
251 251
252#[test] 252#[test]
253fn doctest_change_return_type_to_result() {
254 check_doc_test(
255 "change_return_type_to_result",
256 r#####"
257fn foo() -> i32<|> { 42i32 }
258"#####,
259 r#####"
260fn foo() -> Result<i32, > { Ok(42i32) }
261"#####,
262 )
263}
264
265#[test]
253fn doctest_change_visibility() { 266fn doctest_change_visibility() {
254 check_doc_test( 267 check_doc_test(
255 "change_visibility", 268 "change_visibility",