8000 Improve tilemap clear test by lordmauve · Pull Request #80 · lordmauve/wasabi2d · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Improve tilemap clear test #80

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lordmauve
Copy link
Owner

Summary

  • ensure that clearing a tilemap removes previously set tiles
  • verify another tilemap remains unaffected

Testing

  • pip install -e .
  • pytest -k test_tilemap_clear -q (fails: XOpenDisplay cannot open display)

https://chatgpt.com/codex/tasks/task_e_684166a94dfc8328b24065e51034a2d4

@Copilot Copilot AI review requested due to automatic review settings June 5, 2025 09:54
Copy link
@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR improves tilemap clearance tests by verifying that clearing one tilemap fully removes its tiles while leaving another unaffected.

  • Added assertions to ensure cleared tilemaps have no residual tiles.
  • Added a check that modifications to one tilemap do not impact a separate tilemap.
Comments suppressed due to low confidence (1)

tests/test_tilemap.py:110

  • [nitpick] Consider using a more descriptive variable name instead of 'tm' to maintain consistency with 'tilemap' and improve clarity.
tm[4, 5] = 'bomb'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0