mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-25 04:23:25 +00:00
smoke test
This commit is contained in:
parent
2c00bd8c6a
commit
7e9c7ac4ee
1 changed files with 6 additions and 0 deletions
|
@ -426,6 +426,12 @@ fn parse_fixture_gets_full_meta() {
|
|||
|
||||
let parsed = &parsed[0];
|
||||
assert_eq!("\n", parsed.text);
|
||||
|
||||
let meta = &parsed.meta;
|
||||
assert_eq!("foo", meta.crate_name().unwrap());
|
||||
assert_eq!("/lib.rs", meta.path());
|
||||
assert!(meta.cfg_options().is_some());
|
||||
assert_eq!(2, meta.env().count());
|
||||
}
|
||||
|
||||
/// Same as `parse_fixture`, except it allow empty fixture
|
||||
|
|
Loading…
Reference in a new issue