diff options
author | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 14:27:28 +0200 |
---|---|---|
committer | Aineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi> | 2024-01-30 14:27:28 +0200 |
commit | de4daa463d75403144ac63d3cd94aebf74fa0cb2 (patch) | |
tree | 943cfb0a53c98a0c2573fb748af29973e3642a39 /tests/test_board.py | |
parent | 6d62f8c23e8ab76a2034dde08cff8302c9989fdc (diff) |
Renaming bombs to mines.
Diffstat (limited to 'tests/test_board.py')
-rw-r--r-- | tests/test_board.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/test_board.py b/tests/test_board.py index 7b0d1fd..750e75f 100644 --- a/tests/test_board.py +++ b/tests/test_board.py @@ -16,14 +16,14 @@ class TestBoardClass(unittest.TestCase): b = Board(level=Level.EXPERT) self.assertEqual(b.get_width(), LevelSpecs[Level.EXPERT][0]) self.assertEqual(b.get_height(), LevelSpecs[Level.EXPERT][1]) - self.assertEqual(b.get_bombs(), LevelSpecs[Level.EXPERT][2]) + self.assertEqual(b.get_mines(), LevelSpecs[Level.EXPERT][2]) def test_init_with_incorect_dimensions(self): """ luominen ei saa onnitua mahdottomilla mitoilla """ b = Board(width=1, height=999) self.assertEqual(b.get_width(), LevelSpecs[Level.BEGINNER][0]) self.assertEqual(b.get_height(), LevelSpecs[Level.BEGINNER][1]) - self.assertEqual(b.get_bombs(), LevelSpecs[Level.BEGINNER][2]) + self.assertEqual(b.get_mines(), LevelSpecs[Level.BEGINNER][2]) def test_get_view_and_guess(self): """ laudan näkymä on oikein senkin jälkeen kun on arvattu""" @@ -109,5 +109,5 @@ class TestBoardClass(unittest.TestCase): """ Testataan että nykyinen vaikeustaso palautuu oikein """ b = Board(level=Level.INTERMEDIATE) self.assertIn(LevelSpecs[Level.INTERMEDIATE][3], b.get_level_name()) - b = Board(level=Level.INTERMEDIATE, width=25, bombs=2) + b = Board(level=Level.INTERMEDIATE, width=25, mines=2) self.assertIn("Mukautettu", b.get_level_name()) |