From 2ac508d6e8bf5166ada12e8d752fc291838ff3cc Mon Sep 17 00:00:00 2001 From: Orange Date: Sat, 21 Mar 2026 16:28:48 +0300 Subject: [PATCH] fixed tests --- .claude/settings.local.json | 7 +++++++ tests/general/unit_test_projection.cpp | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 .claude/settings.local.json diff --git a/.claude/settings.local.json b/.claude/settings.local.json new file mode 100644 index 0000000..63da421 --- /dev/null +++ b/.claude/settings.local.json @@ -0,0 +1,7 @@ +{ + "permissions": { + "allow": [ + "Bash(ls:*)" + ] + } +} diff --git a/tests/general/unit_test_projection.cpp b/tests/general/unit_test_projection.cpp index bc1e88e..72187d4 100644 --- a/tests/general/unit_test_projection.cpp +++ b/tests/general/unit_test_projection.cpp @@ -86,7 +86,7 @@ TEST(UnitTestProjection, UnclippedWorldToScreenRejectsBehindCamera) const auto projected = cam.world_to_screen_unclipped({-1000.f, 0, 0}); EXPECT_FALSE(projected.has_value()); - EXPECT_EQ(projected.error(), omath::projection::Error::WORLD_POSITION_IS_OUT_OF_SCREEN_BOUNDS); + EXPECT_EQ(projected.error(), omath::projection::Error::PERSPECTIVE_DIVIDER_LESS_EQ_ZERO); } TEST(UnitTestProjection, UnclippedWorldToScreenAllowsOutOfBoundsNdc)