Esempio n. 1
0
def test_multiply():
    # define the right packages and modules so that this import works
    from unit3tests.factormath import multiply
    assert multiply([], [(2,5)]) == [(2,5)]
    assert multiply([], []) == []
    assert multiply([(2,1), (5,2), (7,2)], [(2,2), (3,1), (17,2)]) == [(2,3), (3,1), (5,2), (7,2), (17,2)]
    assert multiply([(2,1),(19, 1), (7919,4)], [(2,2), (17,1), (19,1), (2687,4)]) == [(2,3), (17,1), (19,2), (2687, 4), (7919,4)]
def test_multiply():
    # define the right packages and modules so that this import works
    from unit3tests.factormath import multiply
    assert multiply([], [(2,5)]) == [(2,5)]
    assert multiply([], []) == []
    assert multiply([(2,1), (5,2), (7,2)], [(2,2), (3,1), (17,2)]) == [(2,3), (3,1), (5,2), (7,2), (17,2)]
    assert multiply([(2,1),(19, 1), (7919,4)], [(2,2), (17,1), (19,1), (2687,4)]) == [(2,3), (17,1), (19,2), (2687, 4), (7919,4)]