aboutsummaryrefslogtreecommitdiff
path: root/crates
diff options
context:
space:
mode:
authorvsrs <[email protected]>2020-05-16 14:56:41 +0100
committervsrs <[email protected]>2020-05-16 14:56:41 +0100
commit7e9c7ac4ee5c9295d811670277bc1aeb9775998c (patch)
treec468d171a4ae4f094034dc4653ccc406793ba70d /crates
parent2c00bd8c6a9476dbac427c84941fe6f54a8a95b1 (diff)
smoke test
Diffstat (limited to 'crates')
-rw-r--r--crates/test_utils/src/lib.rs6
1 files changed, 6 insertions, 0 deletions
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() {
426 426
427 let parsed = &parsed[0]; 427 let parsed = &parsed[0];
428 assert_eq!("\n", parsed.text); 428 assert_eq!("\n", parsed.text);
429
430 let meta = &parsed.meta;
431 assert_eq!("foo", meta.crate_name().unwrap());
432 assert_eq!("/lib.rs", meta.path());
433 assert!(meta.cfg_options().is_some());
434 assert_eq!(2, meta.env().count());
429} 435}
430 436
431/// Same as `parse_fixture`, except it allow empty fixture 437/// Same as `parse_fixture`, except it allow empty fixture