use bevy::app::AppExit; use bevy::asset::AssetPlugin; use bevy::audio::AudioPlugin; use bevy::prelude::*; use bevy::state::app::StatesPlugin; use bevy::utils::HashMap; use bevy_asset_loader::prelude::*; #[test] fn mapped_path_use_slash() { let mut app = App::new(); app.add_plugins(( MinimalPlugins, AssetPlugin::default(), AudioPlugin::default(), StatesPlugin, )); app.init_state::(); #[cfg(feature = "progress_tracking")] app.add_plugins(iyes_progress::ProgressPlugin::new(MyStates::Load)); app.add_loading_state( LoadingState::new(MyStates::Load) .continue_to_state(MyStates::Next) .load_collection::(), ) .add_systems(Update, timeout.run_if(in_state(MyStates::Load))) .add_systems(OnEnter(MyStates::Next), expect) .run(); } fn timeout(time: Res