From d2d3af567918daa3435c8dd3fd2e264c208a5f29 Mon Sep 17 00:00:00 2001 From: johndoe6345789 Date: Wed, 7 Jan 2026 15:08:07 +0000 Subject: [PATCH] feat(tests): Update RunCubeDemoSceneTests to use object type for differentiation --- tests/test_cube_script.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/tests/test_cube_script.cpp b/tests/test_cube_script.cpp index 5171397..16d6d35 100644 --- a/tests/test_cube_script.cpp +++ b/tests/test_cube_script.cpp @@ -602,20 +602,21 @@ void RunCubeDemoSceneTests(int& failures) { Assert(!object.indices.empty(), "scene object should have indices", failures); const auto summary = ExtractMatrixSummary(command.modelMatrix); - const std::string& shaderKey = command.shaderKeys.front(); - if (shaderKey == "floor") { + const std::string& objectType = object.objectType; + + if (objectType == "floor") { floorIndices.push_back(index); if (!object.vertices.empty()) { ExpectColorNear(object.vertices.front(), white, "floor vertex color", failures); } - } else if (shaderKey == "wall") { + } else if (objectType == "wall") { wallIndices.push_back(index); wallTranslations.push_back(summary.translation); Assert(ApproximatelyEqual(summary.scale[1], wallHeight), "wall scale height mismatch", failures); if (!object.vertices.empty()) { ExpectColorNear(object.vertices.front(), white, "wall vertex color", failures); } - } else if (shaderKey == "ceiling") { + } else if (objectType == "ceiling") { ceilingIndices.push_back(index); Assert(ApproximatelyEqual(summary.translation[1], ceilingY), "ceiling translation mismatch", failures); // Ceiling now uses tessellated plane with scale 1.0 (geometry is pre-sized)