예제 #1
0
def test_part2_5():
    input = '+7, +7, -2, -7, -4'
    v = day1.find_repeated_freq(0, input)
    assert v == 14
예제 #2
0
def test_part2_4():
    input = '-6, +3, +8, +5, -6'
    v = day1.find_repeated_freq(0, input)
    assert v == 5
예제 #3
0
def test_part2_2():
    input = '+1, -1'
    v = day1.find_repeated_freq(0, input)
    assert v == 0
예제 #4
0
def test_part2_3():
    input = '+3, +3, +4, -2, -4'
    v = day1.find_repeated_freq(0, input)
    assert v == 10
예제 #5
0
def test_part2_1():
    input = '+1, -2, +3, +1'
    v = day1.find_repeated_freq(0, input)
    assert v == 2