Пример #1
0
def test_dup_lcm():
    assert dup_lcm([2], [6], ZZ) == [6]

    assert dup_lcm([2, 0, 0, 0], [6, 0], ZZ) == [6, 0, 0, 0]
    assert dup_lcm([2, 0, 0, 0], [3, 0], ZZ) == [6, 0, 0, 0]

    assert dup_lcm([1, 1, 0], [1, 0], ZZ) == [1, 1, 0]
    assert dup_lcm([1, 1, 0], [2, 0], ZZ) == [2, 2, 0]
    assert dup_lcm([1, 2, 0], [1, 0], ZZ) == [1, 2, 0]
    assert dup_lcm([2, 1, 0], [1, 0], ZZ) == [2, 1, 0]
    assert dup_lcm([2, 1, 0], [2, 0], ZZ) == [4, 2, 0]
Пример #2
0
def test_dup_lcm():
    assert dup_lcm([2], [6], ZZ) == [6]

    assert dup_lcm([2,0,0,0], [6,0], ZZ) == [6,0,0,0]
    assert dup_lcm([2,0,0,0], [3,0], ZZ) == [6,0,0,0]

    assert dup_lcm([1,1,0], [1,0], ZZ) == [1,1,0]
    assert dup_lcm([1,1,0], [2,0], ZZ) == [2,2,0]
    assert dup_lcm([1,2,0], [1,0], ZZ) == [1,2,0]
    assert dup_lcm([2,1,0], [1,0], ZZ) == [2,1,0]
    assert dup_lcm([2,1,0], [2,0], ZZ) == [4,2,0]