mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-17 06:26:55 +00:00
restore accidentally deleted test
This commit is contained in:
parent
ef8f38efc6
commit
9ea2c96ddd
@ -120,4 +120,17 @@ mod foo {
|
||||
"#,
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn test_resolve_crate_root() {
|
||||
let (analysis, file_id) = fixture::file(
|
||||
r#"
|
||||
//- /main.rs
|
||||
mod foo;
|
||||
//- /foo.rs
|
||||
$0
|
||||
"#,
|
||||
);
|
||||
assert_eq!(analysis.crate_for(file_id).unwrap().len(), 1);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user