コード例 #1
0
def test_move_forward_upp():
    cart = Cart(3, 3, "^")
    cart.move_forward()
    assert_equal(cart.get_coordinates(), (3, 2), "Expected cart to have moved")
コード例 #2
0
def test_move_forward_right():
    cart = Cart(3, 3, ">")
    cart.move_forward()
    assert_equal(cart.get_coordinates(), (4, 3), "Expected cart to have moved")