use fern_sim_test::Terrarium; use std::time::Duration; #[test] fn test_fiddlehead_unfurling() { let mut world = Terrarium::load("tests/unfurl_files/fiddlehead.tm"); assert!(world.fern(0).is_furled()); let one_hour = Duration::from_secs(60 * 60); world.apply_sunlight(one_hour); assert!(world.fern(0).is_fully_unfurled()); }