restore accidentally deleted test

This commit is contained in:
Aleksey Kladov 2021-02-09 18:29:15 +03:00
parent ef8f38efc6
commit 9ea2c96ddd

View File

@ -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);
}
}