Skip to content

Commit

Permalink
Merge pull request #112 from NiklasEi/fix_full_collection_example_on_…
Browse files Browse the repository at this point in the history
…windows

Compare paths instead of strings in full_collection example
  • Loading branch information
NiklasEi authored Mar 16, 2023
2 parents 867f90f + cec54fb commit 050dad8
Showing 1 changed file with 5 additions and 14 deletions.
19 changes: 5 additions & 14 deletions bevy_asset_loader/examples/full_collection.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ use bevy::asset::LoadState;
use bevy::prelude::*;
use bevy::utils::HashMap;
use bevy_asset_loader::prelude::*;
use std::path::Path;

fn main() {
App::new()
Expand Down Expand Up @@ -166,13 +167,8 @@ fn expectations(
LoadState::Loaded
);
assert_eq!(
name,
asset_server
.get_handle_path(handle.clone())
.unwrap()
.path()
.to_str()
.unwrap()
Path::new(name),
asset_server.get_handle_path(handle.clone()).unwrap().path()
);
}
assert_eq!(assets.mapped_files_typed.len(), 2);
Expand All @@ -182,13 +178,8 @@ fn expectations(
LoadState::Loaded
);
assert_eq!(
name,
asset_server
.get_handle_path(handle.clone())
.unwrap()
.path()
.to_str()
.unwrap()
Path::new(name),
asset_server.get_handle_path(handle.clone()).unwrap().path()
);
}

Expand Down

0 comments on commit 050dad8

Please sign in to comment.