Skip to content
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

Adds Surface.get_height test #1829

Merged
merged 1 commit into from May 21, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
16 changes: 6 additions & 10 deletions test/surface_test.py
Expand Up @@ -990,16 +990,12 @@ def todo_test_get_colorkey(self):
self.assertIsInstance(ck, pygame.Color)
self.assertEqual(ck, colorkey)

def todo_test_get_height(self):

# __doc__ (as of 2008-08-02) for pygame.surface.Surface.get_height:

# Surface.get_height(): return height
# get the height of the Surface
#
# Return the height of the Surface in pixels.

self.fail()
def test_get_height(self):
sizes = ((1,1), (119, 10), (10,119), (1,1000), (1000,1), (1000,1000))
for width, height in sizes:
surf = pygame.Surface((width, height))
found_height = surf.get_height()
self.assertEqual(height, found_height)

def todo_test_get_locked(self):

Expand Down