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() {
4343 update_stage. add_system ( despawn_dead_enemies. system ( ) . label ( "death" ) ) ;
4444
4545 // 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 ( ) ;
4747 queue. apply ( & mut world) ;
4848
4949 // Run systems
5050 update_stage. run ( & mut world) ;
5151
5252 // 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 ) ;
5555}
5656
5757#[ test]
@@ -67,14 +67,14 @@ fn did_despawn_enemy() {
6767 update_stage. add_system ( despawn_dead_enemies. system ( ) . label ( "death" ) ) ;
6868
6969 // 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 ( ) ;
7171 queue. apply ( & mut world) ;
7272
7373 // Run systems
7474 update_stage. run ( & mut world) ;
7575
7676 // Check resulting changes
77- assert ! ( world. get:: <Enemy >( ennemy_id ) . is_none( ) ) ;
77+ assert ! ( world. get:: <Enemy >( enemy_id ) . is_none( ) ) ;
7878}
7979
8080#[ test]
You can’t perform that action at this time.
0 commit comments