From 414576fb3059c8431f32a5bbe8fa117d4f3d83b7 Mon Sep 17 00:00:00 2001 From: Daiki Ihara Date: Tue, 8 Dec 2020 01:17:54 +0900 Subject: Add extract_module_to_file assist --- crates/assists/src/tests/generated.rs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'crates/assists/src/tests') diff --git a/crates/assists/src/tests/generated.rs b/crates/assists/src/tests/generated.rs index cc7c4a343..e9093ec53 100644 --- a/crates/assists/src/tests/generated.rs +++ b/crates/assists/src/tests/generated.rs @@ -235,6 +235,21 @@ 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( -- cgit v1.2.3