aboutsummaryrefslogtreecommitdiff
path: root/crates/assists/src/tests/generated.rs
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-11-09 12:18:40 +0000
committerAleksey Kladov <[email protected]>2020-11-09 12:18:40 +0000
commit3cecf78488a40638c8f6ea8b9482080d4bfafca4 (patch)
tree2370ce0d4aa5e93b99878ba548cb9694a8921509 /crates/assists/src/tests/generated.rs
parent29bf6bed9b65691a54a72f83c6cf3be40ae558e8 (diff)
More consistent naming
Diffstat (limited to 'crates/assists/src/tests/generated.rs')
-rw-r--r--crates/assists/src/tests/generated.rs26
1 files changed, 13 insertions, 13 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs
index 629788f05..dbf4f21aa 100644
--- a/crates/assists/src/tests/generated.rs
+++ b/crates/assists/src/tests/generated.rs
@@ -159,19 +159,6 @@ pub mod std { pub mod collections { pub struct HashMap { } } }
159} 159}
160 160
161#[test] 161#[test]
162fn doctest_change_return_type_to_result() {
163 check_doc_test(
164 "change_return_type_to_result",
165 r#####"
166fn foo() -> i32<|> { 42i32 }
167"#####,
168 r#####"
169fn foo() -> Result<i32, ${0:_}> { Ok(42i32) }
170"#####,
171 )
172}
173
174#[test]
175fn doctest_change_visibility() { 162fn doctest_change_visibility() {
176 check_doc_test( 163 check_doc_test(
177 "change_visibility", 164 "change_visibility",
@@ -989,3 +976,16 @@ fn foo() {
989"#####, 976"#####,
990 ) 977 )
991} 978}
979
980#[test]
981fn doctest_wrap_return_type_in_result() {
982 check_doc_test(
983 "wrap_return_type_in_result",
984 r#####"
985fn foo() -> i32<|> { 42i32 }
986"#####,
987 r#####"
988fn foo() -> Result<i32, ${0:_}> { Ok(42i32) }
989"#####,
990 )
991}