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