예제 #1
0
def test_07_b():
    inp = [3, 1, 2]
    result = day.get_number(inp, 30000000)
    assert result == 362
예제 #2
0
def test_05_b():
    inp = [2, 3, 1]
    result = day.get_number(inp, 30000000)
    assert result == 6895259
예제 #3
0
def test_06_b():
    inp = [3, 2, 1]
    result = day.get_number(inp, 30000000)
    assert result == 18
예제 #4
0
def test_03_b():
    inp = [2, 1, 3]
    result = day.get_number(inp, 30000000)
    assert result == 3544142
예제 #5
0
def test_04_b():
    inp = [1, 2, 3]
    result = day.get_number(inp, 30000000)
    assert result == 261214
예제 #6
0
def test_01_b():
    in_list = [0, 3, 6]
    result = day.get_number(in_list, 30000000)
    assert result == 175594
예제 #7
0
def test_02_b():
    inp = [1, 3, 2]
    result = day.get_number(inp, 30000000)
    assert result == 2578
예제 #8
0
def test_06_a():
    inp = [3, 2, 1]
    result = day.get_number(inp)
    assert result == 438
예제 #9
0
def test_07_a():
    inp = [3, 1, 2]
    result = day.get_number(inp)
    assert result == 1836
예제 #10
0
def test_04_a():
    inp = [1, 2, 3]
    result = day.get_number(inp)
    assert result == 27
예제 #11
0
def test_05_a():
    inp = [2, 3, 1]
    result = day.get_number(inp)
    assert result == 78
예제 #12
0
def test_03_a():
    inp = [2, 1, 3]
    result = day.get_number(inp)
    assert result == 10
예제 #13
0
def test_02_a():
    inp = [1, 3, 2]
    result = day.get_number(inp)
    assert result == 1
예제 #14
0
def test_01_a():
    in_list = [0, 3, 6]
    result = day.get_number(in_list, 2020)
    assert result == 436
예제 #15
0
def test_program_v1(numbers, result):
    assert (day15.get_number(numbers, 2020) == result)
예제 #16
0
def test_program_v2(numbers, result):
    assert (day15.get_number(numbers, 30000000) == result)