Пример #1
0
def test_sample_array():
    numbers = [6, 8, 8, 7, 2, 5]
    mult_values = getMultiplicationValues(numbers)
    assert (int(mult_values[0])) == 6
    assert (int(mult_values[1])) == 8
Пример #2
0
def test_raise_exception_if_not_enough_numbers():
    with pytest.raises(ValueError):
        numbers = [1]
        getMultiplicationValues(numbers)
Пример #3
0
def test_third_sample_array():
    numbers = [1, 2, 3, 4, 5, 6]
    mult_values = getMultiplicationValues(numbers)
    assert (int(mult_values[0])) == 6
    assert (int(mult_values[1])) == 5
Пример #4
0
def test_two_multiple_three_greatest_values():
    numbers = [6, 4, 5, 1, 9]
    mult_values = getMultiplicationValues(numbers)
    assert (int(mult_values[0])) == 9
    assert (int(mult_values[1])) == 6
Пример #5
0
def test_second_sample_array():
    numbers = [1, 9, 2, 4]
    mult_values = getMultiplicationValues(numbers)
    assert (int(mult_values[0])) == 9
    assert (int(mult_values[1])) == 4