aboutsummaryrefslogtreecommitdiff
path: root/crates/ide_assists/src/tests
diff options
context:
space:
mode:
authorunexge <[email protected]>2021-04-03 22:04:31 +0100
committerunexge <[email protected]>2021-04-04 18:52:43 +0100
commit8d4be829e09dae4af7b4a82b379fdb8700b0929f (patch)
tree860e45f32fc34b5f443addd04583658118ad2daa /crates/ide_assists/src/tests
parentd3a112d68c74cbd02630f6c909071c94872c193f (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.rs15
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]
295fn doctest_convert_tuple_struct_to_named_struct() {
296 check_doc_test(
297 "convert_tuple_struct_to_named_struct",
298 r#####"
299struct Inner;
300struct A$0(Inner);
301"#####,
302 r#####"
303struct Inner;
304struct A { field1: Inner }
305"#####,
306 )
307}
308
309#[test]
295fn doctest_expand_glob_import() { 310fn doctest_expand_glob_import() {
296 check_doc_test( 311 check_doc_test(
297 "expand_glob_import", 312 "expand_glob_import",