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

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