mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-02 03:33:59 +00:00
smoke test
This commit is contained in:
parent
2c00bd8c6a
commit
7e9c7ac4ee
@ -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 New Issue
Block a user