From 647cf02a383efe093affba366f3159c0439c0c54 Mon Sep 17 00:00:00 2001 From: Orange Date: Mon, 7 Jul 2025 08:28:29 +0300 Subject: [PATCH] Renames test fixture for clarity. Updates the name of the test fixture from "lline_tracer_fixture" to "line_tracer_fixture" for improved readability and consistency in the test code. --- tests/general/unit_test_line_trace.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tests/general/unit_test_line_trace.cpp b/tests/general/unit_test_line_trace.cpp index 30a0e22..3f0e1d6 100644 --- a/tests/general/unit_test_line_trace.cpp +++ b/tests/general/unit_test_line_trace.cpp @@ -31,10 +31,10 @@ namespace // ----------------------------------------------------------------------------- // Fixture with one canonical right‑angled triangle in the XY plane. // ----------------------------------------------------------------------------- - class lline_tracer_fixture : public ::testing::Test + class line_tracer_fixture : public ::testing::Test { protected: - lline_tracer_fixture() : + line_tracer_fixture() : triangle({0.f, 0.f, 0.f}, {1.f, 0.f, 0.f}, {0.f, 1.f, 0.f}) { } @@ -51,7 +51,7 @@ namespace bool expected_clear; // true => segment does NOT hit the triangle }; - class CanTraceLineParam : public lline_tracer_fixture, + class CanTraceLineParam : public line_tracer_fixture, public ::testing::WithParamInterface { }; @@ -79,7 +79,7 @@ namespace // ----------------------------------------------------------------------------- // Validate that the reported hit point is correct for a genuine intersection. // ----------------------------------------------------------------------------- - TEST_F(lline_tracer_fixture, HitPointCorrect) + TEST_F(line_tracer_fixture, HitPointCorrect) { constexpr Ray ray{{0.3f, 0.3f, -1.f}, {0.3f, 0.3f, 1.f}}; constexpr Vec3 expected{0.3f, 0.3f, 0.f}; @@ -92,7 +92,7 @@ namespace // ----------------------------------------------------------------------------- // Triangle far beyond the ray should not block. // ----------------------------------------------------------------------------- - TEST_F(lline_tracer_fixture, DistantTriangleClear) + TEST_F(line_tracer_fixture, DistantTriangleClear) { constexpr Ray short_ray{{0.f, 0.f, 0.f}, {0.f, 0.f, 1.f}}; constexpr Triangle distant{{1000.f, 1000.f, 1000.f},