fixed tests

This commit is contained in:
2026-03-21 16:28:48 +03:00
parent eb1ca6055b
commit 2ac508d6e8
2 changed files with 8 additions and 1 deletions

View File

@@ -0,0 +1,7 @@
{
"permissions": {
"allow": [
"Bash(ls:*)"
]
}
}

View File

@@ -86,7 +86,7 @@ TEST(UnitTestProjection, UnclippedWorldToScreenRejectsBehindCamera)
const auto projected = cam.world_to_screen_unclipped({-1000.f, 0, 0}); const auto projected = cam.world_to_screen_unclipped({-1000.f, 0, 0});
EXPECT_FALSE(projected.has_value()); 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) TEST(UnitTestProjection, UnclippedWorldToScreenAllowsOutOfBoundsNdc)