mirror of
https://github.com/orange-cpp/omath.git
synced 2026-04-18 17:03:27 +00:00
fixed tests
This commit is contained in:
7
.claude/settings.local.json
Normal file
7
.claude/settings.local.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"permissions": {
|
||||
"allow": [
|
||||
"Bash(ls:*)"
|
||||
]
|
||||
}
|
||||
}
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user