From f5584668dba709a119f398de038b3f36085be5ff Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sat, 27 Jun 2020 01:21:43 +0200 Subject: introduce_variable -> extract_variable --- crates/ra_assists/src/tests/generated.rs | 36 ++++++++++++++++---------------- 1 file changed, 18 insertions(+), 18 deletions(-) (limited to 'crates/ra_assists/src/tests/generated.rs') diff --git a/crates/ra_assists/src/tests/generated.rs b/crates/ra_assists/src/tests/generated.rs index 40a223727..31ea888c5 100644 --- a/crates/ra_assists/src/tests/generated.rs +++ b/crates/ra_assists/src/tests/generated.rs @@ -352,6 +352,24 @@ enum A { One(One) } ) } +#[test] +fn doctest_extract_variable() { + check_doc_test( + "extract_variable", + r#####" +fn main() { + <|>(1 + 2)<|> * 4; +} +"#####, + r#####" +fn main() { + let $0var_name = (1 + 2); + var_name * 4; +} +"#####, + ) +} + #[test] fn doctest_fill_match_arms() { check_doc_test( @@ -491,24 +509,6 @@ impl<'a> Cursor<'a> { ) } -#[test] -fn doctest_introduce_variable() { - check_doc_test( - "introduce_variable", - r#####" -fn main() { - <|>(1 + 2)<|> * 4; -} -"#####, - r#####" -fn main() { - let $0var_name = (1 + 2); - var_name * 4; -} -"#####, - ) -} - #[test] fn doctest_invert_if() { check_doc_test( -- cgit v1.2.3