Skip to content

Commit

Permalink
Fix: update old name new_alien_list
Browse files Browse the repository at this point in the history
  • Loading branch information
siebenschlaefer authored and BethanyG committed Feb 19, 2022
1 parent 65ea8ca commit 6abd10d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exercises/concept/ellens-alien-game/classes.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# TODO: Create a class called "Alien" here


def new_alien_list(positions):
def new_aliens_collection(positions):
"""Function taking a list of position tuples, creating one Alien instance per position.
:param positions: list - A list of tuples of (x, y) coordinates.
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/ellens-alien-game/classes_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def error_text(alien, variable):
def test_new_aliens_collection(self):
position_data = [(-2, 6), (1, 5), (-4, -3)]
obj_list = new_aliens_collection(position_data)
obj_error = "new_alien_list must return a list of Alien objects."
obj_error = "new_aliens_collection must return a list of Alien objects."

for obj, position in zip(obj_list, position_data):
self.assertIsInstance(obj, Alien, msg=obj_error)
Expand Down

0 comments on commit 6abd10d

Please sign in to comment.