mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-14 06:15:27 +00:00
restore accidentally deleted test
This commit is contained in:
parent
ef8f38efc6
commit
9ea2c96ddd
1 changed files with 13 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue