File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ {"dirs" :[" res://test/" ],
2+ "double_strategy" :" partial" ,
3+ "ignore_pause" :false ,
4+ "include_subdirs" :true ,
5+ "inner_class" :" " ,
6+ "log_level" :1 ,
7+ "opacity" :100 ,
8+ "prefix" :" test_" ,
9+ "selected" :" " ,
10+ "should_exit" :true ,
11+ "should_exit_on_success" :false ,
12+ "should_maximize" :false ,
13+ "suffix" :" .gd" ,
14+ "tests" :[],
15+ "unit_test_name" :" " }
Original file line number Diff line number Diff line change 66extents = Vector2 ( 10 , 54.8 )
77
88[node name ="Paddle" type ="Area2D" ]
9+ collision_mask = 2
910script = ExtResource ( 1 )
1011
1112[node name ="Shape" type ="CollisionShape2D" parent ="." ]
Original file line number Diff line number Diff line change 66extents = Vector2 ( 102 , 10 )
77
88[node name ="Wall" type ="Area2D" ]
9+ collision_mask = 2
910script = ExtResource ( 1 )
1011
1112[node name ="Shape" type ="CollisionShape2D" parent ="." ]
Original file line number Diff line number Diff line change @@ -8,17 +8,14 @@ func test_wall_and_paddle_can_collide_without_error():
88 var wall = Wall .instance ()
99
1010 wall .set_position (Vector2 (80 , 80 ))
11- paddle .set_position (Vector2 (100 , 150 ))
11+ paddle .set_position (Vector2 (100 , 100 ))
1212
1313 add_child (paddle )
1414 add_child (wall )
1515
16- paddle .set_speed (50 )
17- paddle .move_up (1 )
18-
1916 yield (yield_for (.5 ), YIELD )
2017 assert_true (true , 'we got here' )
2118
22- # remove_child(paddle)
23- # remove_child(wall)
19+ remove_child (paddle )
20+ remove_child (wall )
2421
You can’t perform that action at this time.
0 commit comments