From 25edc3c60a8fe9a01b1ff7b6a20ceb83d78e2965 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 6 Jan 2021 16:24:47 +0300 Subject: Better target for move module --- crates/assists/src/tests/generated.rs | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'crates/assists/src/tests') 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 @@ -237,21 +237,6 @@ fn qux(bar: Bar, baz: Baz) {} ) } -#[test] -fn doctest_extract_module_to_file() { - check_doc_test( - "extract_module_to_file", - r#####" -mod foo {<|> - fn t() {} -} -"#####, - r#####" -mod foo; -"#####, - ) -} - #[test] fn doctest_extract_struct_from_enum_variant() { check_doc_test( @@ -760,6 +745,21 @@ fn handle(action: Action) { ) } +#[test] +fn doctest_move_module_to_file() { + check_doc_test( + "move_module_to_file", + r#####" +mod <|>foo { + fn t() {} +} +"#####, + r#####" +mod foo; +"#####, + ) +} + #[test] fn doctest_pull_assignment_up() { check_doc_test( -- cgit v1.2.3