diff options
author | Ryan Leckey <ryan@launchbadge.com> | 2018-09-25 23:58:34 -0700 |
---|---|---|
committer | Ryan Leckey <ryan@launchbadge.com> | 2018-09-25 23:58:34 -0700 |
commit | 1612293b617f5459d2313c776d5117401c6aa8c2 (patch) | |
tree | b749a835b8f3d380b86adc26a2047046bdda645d /tests/set.rs | |
parent | 2e8f12f0e76818a650749a6311f5a79a70be49b0 (diff) |
Fix #75; tests run with --no-default-features
Diffstat (limited to 'tests/set.rs')
-rw-r--r-- | tests/set.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/set.rs b/tests/set.rs index e1f6290..bd439a0 100644 --- a/tests/set.rs +++ b/tests/set.rs @@ -11,6 +11,7 @@ fn test_set_scalar() { assert_eq!(c.get("value").ok(), Some(true)); } +#[cfg(feature = "toml")] #[test] fn test_set_scalar_default() { let mut c = Config::default(); @@ -25,6 +26,7 @@ fn test_set_scalar_default() { assert_eq!(c.get("staging").ok(), Some(false)); } +#[cfg(feature = "toml")] #[test] fn test_set_scalar_path() { let mut c = Config::default(); @@ -43,6 +45,7 @@ fn test_set_scalar_path() { assert_eq!(c.get("place.blocked").ok(), Some(true)); } +#[cfg(feature = "toml")] #[test] fn test_set_arr_path() { let mut c = Config::default(); @@ -74,6 +77,7 @@ fn test_set_arr_path() { assert_eq!(c.get("items[2]").ok(), Some("George".to_string())); } +#[cfg(feature = "toml")] #[test] fn test_set_capital() { let mut c = Config::default(); |