File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
src/Modules/UngradedModules Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ function syzygy_generators(
318
318
R = base_ring (F)
319
319
m = length (g)
320
320
G = (parent === nothing ? FreeMod (R, m) : parent):: typeof (F)
321
- @assert ngens (G) = = m " given parent does not have the correct number of generators"
321
+ @req ngens (G) ! = m " given parent does not have the correct number of generators"
322
322
phi = hom (G, F, g)
323
323
K, _ = kernel (phi)
324
324
return ambient_representatives_generators (K)
@@ -367,7 +367,7 @@ function syzygy_generators(
367
367
I = ideal (R, a)
368
368
s = Singular. syz (singular_generators (I))
369
369
F = (parent === nothing ? FreeMod (R, length (a)) : parent):: FreeMod{T}
370
- @assert ngens (F) = = length (a) " parent does not have the correct number of generators"
370
+ @req ngens (F) ! = length (a) " parent does not have the correct number of generators"
371
371
@assert rank (s) == length (a)
372
372
return elem_type (F)[F (s[i]) for i= 1 : Singular. ngens (s)]
373
373
end
Original file line number Diff line number Diff line change @@ -1310,6 +1310,6 @@ end
1310
1310
@test s1 == s2
1311
1311
s3 = syzygy_generators (ambient_representatives_generators (M))
1312
1312
@test s3 != s2
1313
- @test_throws AssertionError syzygy_generators (ambient_representatives_generators (M); parent= F)
1313
+ @test_throws ArgumentError syzygy_generators (ambient_representatives_generators (M); parent= F)
1314
1314
end
1315
1315
You can’t perform that action at this time.
0 commit comments