Пример #1
0
    def test_isInRange_returns_false_when_rover_outside_dimensions(self):
        # arrange
        rover = Rover(1, 3, "N")

        # act
        result = rover.isInRange((1, 1))

        # assert
        self.assertEqual(
            result,
            False,
        )
Пример #2
0
    def test_isInRange_returns_true_when_rover_inside_dimensions(self):
        # arrange
        rover = Rover(1, 3, "N")

        # act
        result = rover.isInRange((4, 4))

        # assert
        self.assertEqual(
            result,
            True,
        )