def test_position_is_not_allowed(self):
     self.assertEqual(w.is_position_allowed(250, 56), False)
Exemple #2
0
 def test_showing_positions_min(self):
     #robot.robot_start()
     # actual_outcome = world.text.world.show_position('hal')
     # expected_outcome = ('> HAL moved forward by 10 steps.')
     self.assertTrue(world.is_position_allowed(10,0),True)
 def test_is_position_allowed(self):
     self.assertEqual(w.is_position_allowed(12, 34), True)
Exemple #4
0
 def test_position_allowed_true(self):
     self.assertEqual(world.is_position_allowed(50, 50), True)
Exemple #5
0
 def test_position_allowed_false(self):
     self.assertEqual(world.is_position_allowed(300, 500), False)
 def test_is_position_allowed(self):
     position_allowed = world.is_position_allowed(0, 10)
     self.assertTrue(position_allowed)
 def test_not_position_allowed(self):
     position_not_allowed = world.is_position_allowed(300, 250)
     self.assertFalse(position_not_allowed)