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

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