File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -43,15 +43,15 @@ fn did_hurt_enemy() {
43
43
update_stage. add_system ( despawn_dead_enemies. system ( ) . label ( "death" ) ) ;
44
44
45
45
// Setup test entities
46
- let ennemy_id = commands. spawn ( ) . insert ( Enemy { hit_points : 5 } ) . id ( ) ;
46
+ let enemy_id = commands. spawn ( ) . insert ( Enemy { hit_points : 5 } ) . id ( ) ;
47
47
queue. apply ( & mut world) ;
48
48
49
49
// Run systems
50
50
update_stage. run ( & mut world) ;
51
51
52
52
// Check resulting changes
53
- assert ! ( world. get:: <Enemy >( ennemy_id ) . is_some( ) ) ;
54
- assert_eq ! ( world. get:: <Enemy >( ennemy_id ) . unwrap( ) . hit_points, 4 ) ;
53
+ assert ! ( world. get:: <Enemy >( enemy_id ) . is_some( ) ) ;
54
+ assert_eq ! ( world. get:: <Enemy >( enemy_id ) . unwrap( ) . hit_points, 4 ) ;
55
55
}
56
56
57
57
#[ test]
@@ -67,14 +67,14 @@ fn did_despawn_enemy() {
67
67
update_stage. add_system ( despawn_dead_enemies. system ( ) . label ( "death" ) ) ;
68
68
69
69
// Setup test entities
70
- let ennemy_id = commands. spawn ( ) . insert ( Enemy { hit_points : 1 } ) . id ( ) ;
70
+ let enemy_id = commands. spawn ( ) . insert ( Enemy { hit_points : 1 } ) . id ( ) ;
71
71
queue. apply ( & mut world) ;
72
72
73
73
// Run systems
74
74
update_stage. run ( & mut world) ;
75
75
76
76
// Check resulting changes
77
- assert ! ( world. get:: <Enemy >( ennemy_id ) . is_none( ) ) ;
77
+ assert ! ( world. get:: <Enemy >( enemy_id ) . is_none( ) ) ;
78
78
}
79
79
80
80
#[ test]
You can’t perform that action at this time.
0 commit comments