def test_gf_monic(): assert gf_monic([], 11, ZZ) == (0, []) assert gf_monic([1], 11, ZZ) == (1, [1]) assert gf_monic([2], 11, ZZ) == (2, [1]) assert gf_monic([1, 2, 3, 4], 11, ZZ) == (1, [1, 2, 3, 4]) assert gf_monic([2, 3, 4, 5], 11, ZZ) == (2, [1, 7, 2, 8])
def test_gf_monic(): assert gf_monic(ZZ.map([]), 11, ZZ) == (0, []) assert gf_monic(ZZ.map([1]), 11, ZZ) == (1, [1]) assert gf_monic(ZZ.map([2]), 11, ZZ) == (2, [1]) assert gf_monic(ZZ.map([1, 2, 3, 4]), 11, ZZ) == (1, [1, 2, 3, 4]) assert gf_monic(ZZ.map([2, 3, 4, 5]), 11, ZZ) == (2, [1, 7, 2, 8])