pygame-ce icon indicating copy to clipboard operation
pygame-ce copied to clipboard

Additional tests for `Mask.to_surface`'s `area` argument

Open Matiiss opened this issue 5 months ago • 0 comments
trafficstars

Re: https://github.com/pygame-community/pygame-ce/pull/2670#issuecomment-2952820683

These additional tests should include:

  • [ ] different mask patterns (e.g., checkerboard or just cropping some part of the mask out)
  • [ ] setsurface and unsetsurface arguments both separately and together and also with different color patterns

This is the file you're looking for: https://github.com/pygame-community/pygame-ce/blob/main/test/mask_test.py Just find tests related to to_surface in there and add your tests somewhere in that neighborhood (preferably grouping them near related existing test cases)

Matiiss avatar Jun 18 '25 22:06 Matiiss