Ejemplo n.º 1
0
def test_santa_square_movement():
    assert 3 == santa.travel("^>v<")
Ejemplo n.º 2
0
def test_santa_one_move():
    assert 2 == santa.travel(">")
Ejemplo n.º 3
0
def test_actual_from_file():
    content = []
    with open("input.secret") as f:
        content = f.readlines()

    assert 2341 == santa.travel(content[0])
Ejemplo n.º 4
0
def test_santa_no_movement():
    assert 1 == santa.travel("")
Ejemplo n.º 5
0
def test_santa_back_and_forth():
    assert 3 == santa.travel("^v")
    assert 11 == santa.travel("^v^v^v^v^v")