Skip to content

Commit

Permalink
Fixed up test
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGVSV committed Apr 25, 2022
1 parent 973b42f commit 6c5af23
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions crates/bevy_reflect/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -269,13 +269,13 @@ mod tests {

#[test]
fn test_into_iter() {
let mut map = DynamicMap::default();
map.insert(0usize, "foo".to_string());
map.insert(1usize, "bar".to_string());
map.insert(2usize, "baz".to_string());

let expected = vec!["foo", "bar", "baz"];

let mut map = DynamicMap::default();
map.insert(0usize, expected[0].to_string());
map.insert(1usize, expected[1].to_string());
map.insert(2usize, expected[2].to_string());

for (index, item) in map.into_iter().enumerate() {
let key = item.0.take::<usize>().expect("couldn't downcast to usize");
let value = item
Expand Down

0 comments on commit 6c5af23

Please sign in to comment.