Skip to content

Commit

Permalink
Merge pull request #1829 from kduggan15/get-height-test
Browse files Browse the repository at this point in the history
Adds Surface.get_height test
  • Loading branch information
illume committed May 21, 2020
2 parents 8eaf011 + ff91d7b commit 9dcb80c
Showing 1 changed file with 6 additions and 10 deletions.
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

0 comments on commit 9dcb80c

Please sign in to comment.