diff options
author | Luiz Carlos Mourão Paes de Carvalho <[email protected]> | 2021-03-12 11:53:57 +0000 |
---|---|---|
committer | Luiz Carlos Mourão Paes de Carvalho <[email protected]> | 2021-03-12 11:53:57 +0000 |
commit | e505752442f849c7d37465f0e0b6aa042644787b (patch) | |
tree | fbbc024c6b6d296a93d7f5203e763e62d2cbef21 /crates/ide_assists/src/tests | |
parent | 7a9230acdfe900d9e42f0b8cd37e4a7db6d8ff18 (diff) |
fix: generated test fixture
Diffstat (limited to 'crates/ide_assists/src/tests')
-rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 304b5798f..af513ca22 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs | |||
@@ -206,6 +206,29 @@ const _: i32 = 0b1010; | |||
206 | } | 206 | } |
207 | 207 | ||
208 | #[test] | 208 | #[test] |
209 | fn doctest_convert_iter_for_each_to_for() { | ||
210 | check_doc_test( | ||
211 | "convert_iter_for_each_to_for", | ||
212 | r#####" | ||
213 | fn main() { | ||
214 | let vec = vec![(1, 2), (2, 3), (3, 4)]; | ||
215 | x.iter().for_each(|(x, y)| { | ||
216 | println!("x: {}, y: {}", x, y); | ||
217 | }); | ||
218 | } | ||
219 | "#####, | ||
220 | r#####" | ||
221 | fn main() { | ||
222 | let vec = vec![(1, 2), (2, 3), (3, 4)]; | ||
223 | for (x, y) in x.iter() { | ||
224 | println!("x: {}, y: {}", x, y); | ||
225 | } | ||
226 | } | ||
227 | "#####, | ||
228 | ) | ||
229 | } | ||
230 | |||
231 | #[test] | ||
209 | fn doctest_convert_to_guarded_return() { | 232 | fn doctest_convert_to_guarded_return() { |
210 | check_doc_test( | 233 | check_doc_test( |
211 | "convert_to_guarded_return", | 234 | "convert_to_guarded_return", |