diff options
author | unexge <[email protected]> | 2021-04-03 22:04:31 +0100 |
---|---|---|
committer | unexge <[email protected]> | 2021-04-04 18:52:43 +0100 |
commit | 8d4be829e09dae4af7b4a82b379fdb8700b0929f (patch) | |
tree | 860e45f32fc34b5f443addd04583658118ad2daa /crates/ide_assists/src/tests | |
parent | d3a112d68c74cbd02630f6c909071c94872c193f (diff) |
Add convert tuple struct to named struct assist
Diffstat (limited to 'crates/ide_assists/src/tests')
-rw-r--r-- | crates/ide_assists/src/tests/generated.rs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/crates/ide_assists/src/tests/generated.rs b/crates/ide_assists/src/tests/generated.rs index 27a22ca10..53f455adf 100644 --- a/crates/ide_assists/src/tests/generated.rs +++ b/crates/ide_assists/src/tests/generated.rs | |||
@@ -292,6 +292,21 @@ fn main() { | |||
292 | } | 292 | } |
293 | 293 | ||
294 | #[test] | 294 | #[test] |
295 | fn doctest_convert_tuple_struct_to_named_struct() { | ||
296 | check_doc_test( | ||
297 | "convert_tuple_struct_to_named_struct", | ||
298 | r#####" | ||
299 | struct Inner; | ||
300 | struct A$0(Inner); | ||
301 | "#####, | ||
302 | r#####" | ||
303 | struct Inner; | ||
304 | struct A { field1: Inner } | ||
305 | "#####, | ||
306 | ) | ||
307 | } | ||
308 | |||
309 | #[test] | ||
295 | fn doctest_expand_glob_import() { | 310 | fn doctest_expand_glob_import() { |
296 | check_doc_test( | 311 | check_doc_test( |
297 | "expand_glob_import", | 312 | "expand_glob_import", |