diff options
author | Aleksey Kladov <[email protected]> | 2021-01-06 13:24:47 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2021-01-06 13:32:45 +0000 |
commit | 25edc3c60a8fe9a01b1ff7b6a20ceb83d78e2965 (patch) | |
tree | 4818fcd60f5f4110037faac367744c925d5f5075 /crates/assists/src/tests | |
parent | ed732e86eb88393cdec471b263303adea6ffcb73 (diff) |
Better target for move module
Diffstat (limited to 'crates/assists/src/tests')
-rw-r--r-- | crates/assists/src/tests/generated.rs | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index b15352cf3..fdebee4fe 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs | |||
@@ -238,21 +238,6 @@ fn qux(bar: Bar, baz: Baz) {} | |||
238 | } | 238 | } |
239 | 239 | ||
240 | #[test] | 240 | #[test] |
241 | fn doctest_extract_module_to_file() { | ||
242 | check_doc_test( | ||
243 | "extract_module_to_file", | ||
244 | r#####" | ||
245 | mod foo {<|> | ||
246 | fn t() {} | ||
247 | } | ||
248 | "#####, | ||
249 | r#####" | ||
250 | mod foo; | ||
251 | "#####, | ||
252 | ) | ||
253 | } | ||
254 | |||
255 | #[test] | ||
256 | fn doctest_extract_struct_from_enum_variant() { | 241 | fn doctest_extract_struct_from_enum_variant() { |
257 | check_doc_test( | 242 | check_doc_test( |
258 | "extract_struct_from_enum_variant", | 243 | "extract_struct_from_enum_variant", |
@@ -761,6 +746,21 @@ fn handle(action: Action) { | |||
761 | } | 746 | } |
762 | 747 | ||
763 | #[test] | 748 | #[test] |
749 | fn doctest_move_module_to_file() { | ||
750 | check_doc_test( | ||
751 | "move_module_to_file", | ||
752 | r#####" | ||
753 | mod <|>foo { | ||
754 | fn t() {} | ||
755 | } | ||
756 | "#####, | ||
757 | r#####" | ||
758 | mod foo; | ||
759 | "#####, | ||
760 | ) | ||
761 | } | ||
762 | |||
763 | #[test] | ||
764 | fn doctest_pull_assignment_up() { | 764 | fn doctest_pull_assignment_up() { |
765 | check_doc_test( | 765 | check_doc_test( |
766 | "pull_assignment_up", | 766 | "pull_assignment_up", |