def test_gf_lcm(): assert gf_lcm(ZZ.map([]), ZZ.map([]), 11, ZZ) == [] assert gf_lcm(ZZ.map([2]), ZZ.map([]), 11, ZZ) == [] assert gf_lcm(ZZ.map([]), ZZ.map([2]), 11, ZZ) == [] assert gf_lcm(ZZ.map([2]), ZZ.map([2]), 11, ZZ) == [1] assert gf_lcm(ZZ.map([]), ZZ.map([1, 0]), 11, ZZ) == [] assert gf_lcm(ZZ.map([1, 0]), ZZ.map([]), 11, ZZ) == [] assert gf_lcm(ZZ.map([3, 0]), ZZ.map([3, 0]), 11, ZZ) == [1, 0] assert gf_lcm(ZZ.map([1, 8, 7]), ZZ.map([1, 7, 1, 7]), 11, ZZ) == [1, 8, 8, 8, 7]
def test_gf_lcm(): assert gf_lcm([], [], 11, ZZ) == [] assert gf_lcm([2], [], 11, ZZ) == [] assert gf_lcm([], [2], 11, ZZ) == [] assert gf_lcm([2], [2], 11, ZZ) == [1] assert gf_lcm([], [1,0], 11, ZZ) == [] assert gf_lcm([1,0], [], 11, ZZ) == [] assert gf_lcm([3,0], [3,0], 11, ZZ) == [1,0] assert gf_lcm([1,8,7], [1,7,1,7], 11, ZZ) == [1,8,8,8,7]