From 7e9c7ac4ee5c9295d811670277bc1aeb9775998c Mon Sep 17 00:00:00 2001 From: vsrs Date: Sat, 16 May 2020 16:56:41 +0300 Subject: smoke test --- crates/test_utils/src/lib.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'crates') diff --git a/crates/test_utils/src/lib.rs b/crates/test_utils/src/lib.rs index e7fa201e9..fc5ae8f07 100644 --- a/crates/test_utils/src/lib.rs +++ b/crates/test_utils/src/lib.rs @@ -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 -- cgit v1.2.3