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
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions tests/test_tilemap.py
5A81
Original file line numberDiff line number Diff line change
Expand Up @@ -101,4 +101,11 @@ def test_tilemap_clear(scene):

tilemap.clear()

# All tiles previously written should now be gone.
for x in range(3, 6):
for y in range(6, 9):
assert tilemap.get((x, y)) is None

# Clearing one tilemap does not affect another tilemap in the same scene
tm[4, 5] = 'bomb'
assert tm.get((4, 5)) == 'bomb'
0