Example #1
0
def test_get_possible_outputs_7():
    assert 12 in get_possible_outputs((3, 5, 7, 9))
Example #2
0
def test_get_possible_outputs_8():
    assert get_possible_outputs((4, 7, 9)) == {
        20, 99, 2, -2, 37, 19, -19, 12, 27, 3, 6, -6, -27, -3, -12, 64, 4, 67, 252, 59, -59, 91, 43, 29, -29, 35, -35, 8, -8
    }
Example #3
0
def test_get_possible_outputs_5():
    assert 12 in get_possible_outputs((7, 5, 5, 1))
Example #4
0
def test_get_possible_outputs_4():
    assert get_possible_outputs((7, 2, 3)) == {
        12, 27, 3, 6, -6, 17, 42, 11, -11, 8, 15, 2, -2, -15, -8, 20, 5, 23, 19, -19, 35, 13, 1, -1, 7, -7
    }
Example #5
0
def test_get_possible_outputs_3():
    assert get_possible_outputs((8, 0)) == {8, 0, -8}
Example #6
0
def test_get_possible_outputs_2():
    assert get_possible_outputs((8, 4)) == {12, 32, 2, 4, -4}
Example #7
0
def test_get_possible_outputs_1():
    assert get_possible_outputs((7, 2)) == {14, 9, 5, -5}