Skip to content

Commit bcb6fab

Browse files
committed
fix test naming
1 parent 8f93e7b commit bcb6fab

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

crates/ra_hir/src/nameres/tests.rs

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -351,27 +351,25 @@ fn typing_inside_a_function_should_not_invalidate_item_map() {
351351
check_item_map_is_not_recomputed(
352352
"
353353
//- /lib.rs
354-
mod foo;
354+
mod foo;<|>
355355
356356
use crate::foo::bar::Baz;
357357
358+
fn foo() -> i32 {
359+
1 + 1
360+
}
358361
//- /foo/mod.rs
359362
pub mod bar;
360363
361364
//- /foo/bar.rs
362-
<|>
363-
salsa::query_group! {
364-
trait Baz {
365-
fn foo() -> i32 { 1 + 1 }
366-
}
367-
}
365+
pub struct Baz;
368366
",
369367
"
370-
salsa::query_group! {
371-
trait Baz {
372-
fn foo() -> i32 { 92 }
373-
}
374-
}
368+
mod foo;
369+
370+
use crate::foo::bar::Baz;
371+
372+
fn foo() -> i32 { 92 }
375373
",
376374
);
377375
}
@@ -381,25 +379,27 @@ fn typing_inside_a_function_inside_a_macro_should_not_invalidate_item_map() {
381379
check_item_map_is_not_recomputed(
382380
"
383381
//- /lib.rs
384-
mod foo;<|>
382+
mod foo;
385383
386384
use crate::foo::bar::Baz;
387385
388-
fn foo() -> i32 {
389-
1 + 1
390-
}
391386
//- /foo/mod.rs
392387
pub mod bar;
393388
394389
//- /foo/bar.rs
395-
pub struct Baz;
390+
<|>
391+
salsa::query_group! {
392+
trait Baz {
393+
fn foo() -> i32 { 1 + 1 }
394+
}
395+
}
396396
",
397397
"
398-
mod foo;
399-
400-
use crate::foo::bar::Baz;
401-
402-
fn foo() -> i32 { 92 }
398+
salsa::query_group! {
399+
trait Baz {
400+
fn foo() -> i32 { 92 }
401+
}
402+
}
403403
",
404404
);
405405
}

0 commit comments

Comments
 (0)