From de4daa463d75403144ac63d3cd94aebf74fa0cb2 Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Tue, 30 Jan 2024 14:27:28 +0200 Subject: Renaming bombs to mines. --- tests/test_board.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/test_board.py') 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()) -- cgit v1.2.3