From bcb6fabd15d2767c21b6a4f9d00389341ec6731e Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Wed, 9 Jan 2019 00:49:21 +0300 Subject: fix test naming --- crates/ra_hir/src/nameres/tests.rs | 44 +++++++++++++++++++------------------- 1 file changed, 22 insertions(+), 22 deletions(-) (limited to 'crates/ra_hir/src') diff --git a/crates/ra_hir/src/nameres/tests.rs b/crates/ra_hir/src/nameres/tests.rs index ac96bea37..0e9026a01 100644 --- a/crates/ra_hir/src/nameres/tests.rs +++ b/crates/ra_hir/src/nameres/tests.rs @@ -351,27 +351,25 @@ fn typing_inside_a_function_should_not_invalidate_item_map() { check_item_map_is_not_recomputed( " //- /lib.rs - mod foo; + mod foo;<|> use crate::foo::bar::Baz; + fn foo() -> i32 { + 1 + 1 + } //- /foo/mod.rs pub mod bar; //- /foo/bar.rs - <|> - salsa::query_group! { - trait Baz { - fn foo() -> i32 { 1 + 1 } - } - } + pub struct Baz; ", " - salsa::query_group! { - trait Baz { - fn foo() -> i32 { 92 } - } - } + mod foo; + + use crate::foo::bar::Baz; + + fn foo() -> i32 { 92 } ", ); } @@ -381,25 +379,27 @@ fn typing_inside_a_function_inside_a_macro_should_not_invalidate_item_map() { check_item_map_is_not_recomputed( " //- /lib.rs - mod foo;<|> + mod foo; use crate::foo::bar::Baz; - fn foo() -> i32 { - 1 + 1 - } //- /foo/mod.rs pub mod bar; //- /foo/bar.rs - pub struct Baz; + <|> + salsa::query_group! { + trait Baz { + fn foo() -> i32 { 1 + 1 } + } + } ", " - mod foo; - - use crate::foo::bar::Baz; - - fn foo() -> i32 { 92 } + salsa::query_group! { + trait Baz { + fn foo() -> i32 { 92 } + } + } ", ); } -- cgit v1.2.3