Skip to content

Commit

Permalink
added at a wrong place...
Browse files Browse the repository at this point in the history
  • Loading branch information
Lazy-Rabbit-2001 committed Jan 12, 2025
1 parent 514f986 commit 8ff4594
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/scene/test_camera_2d.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ TEST_CASE("[SceneTree][Camera2D] Getters and setters") {
constexpr float drag_bottom_margin = 0.8f;
constexpr float drag_horizontal_offset1 = 0.5f;
constexpr float drag_horizontal_offset2 = -0.5f;

constexpr float drag_vertical_offset1 = 0.5f;
constexpr float drag_vertical_offset2 = -0.5f;
test_camera->set_drag_margin(SIDE_LEFT, drag_left_margin);
Expand Down Expand Up @@ -137,7 +138,6 @@ TEST_CASE("[SceneTree][Camera2D] Getters and setters") {
}

SUBCASE("Limit") {
test_camera->set_limit_unlimited(false);
constexpr int limit_left = 100;
constexpr int limit_top = 100;
constexpr int limit_right = 100;
Expand Down Expand Up @@ -200,6 +200,7 @@ TEST_CASE("[SceneTree][Camera2D] Camera positioning") {
}

SUBCASE("Limits") {
test_camera->set_limit_unlimited(false);
test_camera->set_limit(SIDE_LEFT, 100);
test_camera->set_limit(SIDE_TOP, 50);

Expand Down

0 comments on commit 8ff4594

Please sign in to comment.