Exemple #1
0
 def test_validate_move_down(self):
     self.assertEqual(True, validate_move((0, 0), "s"))
Exemple #2
0
 def test_validate_move_up(self):
     self.assertEqual(True, validate_move((1, 1), "w"))
Exemple #3
0
 def test_validate_move_leftfail(self):
     self.assertEqual(False, validate_move((0, 4), "d"))
Exemple #4
0
 def test_validate_move_is_valid_movement_boolean(self):
     self.assertEqual(bool, type(validate_move((0, 0), "d")))
Exemple #5
0
 def test_validate_move_rightfail(self):
     self.assertEqual(False, validate_move((0, 0), "a"))
Exemple #6
0
 def test_validate_move_downfail(self):
     self.assertEqual(False, validate_move((4, 0), "s"))
Exemple #7
0
 def test_validate_move_upfail(self):
     self.assertEqual(False, validate_move((0, 0), "w"))
Exemple #8
0
 def test_validate_move_left(self):
     self.assertEqual(True, validate_move((1, 1), "a"))
Exemple #9
0
 def test_validate_move_right(self):
     self.assertEqual(True, validate_move((0, 0), "d"))