Skip to content

Commit 6fac343

Browse files
committed
simplify: drop redundant sphere class-name test
The sphere variant exercises the same 3D class-name lookup branch as the box variant; removing it leaves box (3D) + rectangle (2D) + cross-dim reject + unknown reject, which already covers every distinct branch in the new normalization path. https://claude.ai/code/session_01RaCiJxQvK6KXtZqtL2t1gS
1 parent 99f3c46 commit 6fac343

1 file changed

Lines changed: 0 additions & 17 deletions

File tree

test_project/tests/test_physics_shape.gd

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -170,23 +170,6 @@ func test_autofit_3d_accepts_godot_class_name() -> void:
170170
_remove_node(parts.body)
171171

172172

173-
func test_autofit_3d_accepts_sphere_class_name() -> void:
174-
var parts := _add_body_3d("TestAutofit3DSphereClassName", Vector3(4, 1, 2))
175-
if parts.is_empty():
176-
skip("No scene root")
177-
return
178-
var result := _handler.autofit({
179-
"path": parts.collision.get_path(),
180-
"shape_type": "SphereShape3D",
181-
})
182-
assert_has_key(result, "data")
183-
assert_eq(result.data.shape_class, "SphereShape3D")
184-
assert_eq(result.data.shape_type, "sphere")
185-
assert_true(parts.collision.shape is SphereShape3D)
186-
assert_eq(parts.collision.shape.radius, 2.0)
187-
_remove_node(parts.body)
188-
189-
190173
func test_autofit_2d_accepts_godot_class_name() -> void:
191174
var parts := _add_body_2d("TestAutofit2DClassName", Vector2(32, 48))
192175
if parts.is_empty():

0 commit comments

Comments
 (0)