godot icon indicating copy to clipboard operation
godot copied to clipboard

Unit tests for parallax_2d

Open LeonStansfield opened this issue 1 year ago • 2 comments
trafficstars

In this PR I have added unit tests for parallax_2d.h for the tracker #43440 The tests include

  • set_scroll_scale and get_scroll_scale
  • set_repeat_size and get_repeat_size
  • set_repeat_times and get_repeat_times
  • set_autoscroll and get_autoscroll
  • set_scroll_offset and get_scroll_offset
  • set_screen_offset and get_screen_offset
  • set_limit_begin and get_limit_begin
  • set_limit_end and get_limit_end
  • set_follow_viewport and get_follow_viewport
  • set_ignore_camera_scroll and is_ignore_camera_scroll

LeonStansfield avatar Aug 16 '24 16:08 LeonStansfield

cc @markdibarry

Calinou avatar Aug 16 '24 16:08 Calinou

Please use clang-format or the precommit hook, see here, to fix your style instead

AThousandShips avatar Aug 16 '24 17:08 AThousandShips

Please squash commits into one, see PR workflow (and ensure the resulting commit has a short descriptive title).

kleonc avatar Sep 05 '24 13:09 kleonc

Please fix the commit message to follow the style, the PR title would be good

AThousandShips avatar Sep 05 '24 18:09 AThousandShips

Thanks!

akien-mga avatar Sep 06 '24 20:09 akien-mga