Skip to content

Commit

Permalink
One more test.
Browse files Browse the repository at this point in the history
  • Loading branch information
skytreader committed Mar 6, 2016
1 parent 1503501 commit 56d150e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions algorithms/snippets/grids.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,8 @@ def test_get_adjacent_8c(self):
down_right_neighbors = set([(3, 2), (2, 2), (2, 3)])
self.assertEqual(down_right_neighbors, set(get_adjacent_8c((3, 3), 4, 4)))

up_right_neighbors = set([(0, 2), (1, 2), (1, 3)])
self.assertEqual(up_right_neighbors, set(get_adjacent_8c((0, 3), 4, 4)))

if __name__ == "__main__":
unittest.main()

0 comments on commit 56d150e

Please sign in to comment.