diff --git a/src/lib.rs b/src/lib.rs index 6206c52..2fdfa74 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -64,7 +64,7 @@ fn seed() -> u64 { } /// It can be fatal if you step hard enough. -#[cfg(any(feature = "give-up", feature = "step-on-lego"))] +#[cfg(feature = "step-on-lego")] pub fn step_on_lego() -> u32 { let mut rng = oorandom::Rand64::new(seed() as u128); @@ -74,7 +74,7 @@ pub fn step_on_lego() -> u32 { } /// Good for job security. -#[cfg(any(feature = "give-up", feature = "step-on-lego"))] +#[cfg(feature = "give-up")] pub fn give_up() -> Box { let size = std::mem::size_of::(); @@ -131,4 +131,10 @@ mod tests { fn can_download_more_ram() { crate::download_more_ram::(); } + + #[test] + #[cfg(feature = "step-on-lego")] + fn can_step_on_lego() { + crate::step_on_lego(); + } }