Skip to content

Commit

Permalink
Add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
paemurru committed Oct 18, 2024
1 parent 72882c1 commit af3e7cd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/GrpAb/Elem.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@
a = @inferred FinGenAbGroupElem(G, N)
@test parent(a) == G
@test a.coeff == N
@test a[begin:end] == [0, 0, 0]

G = @inferred abelian_group([3, 0])
N = FlintZZ[1 1]
a = @inferred FinGenAbGroupElem(G, N)
@test @inferred parent(a) == G
@test a.coeff == N
@test a[begin:end] == [1, 1]

N = matrix(FlintZZ, 1, 2, [ 1, 1 ])
a = @inferred G(N)
Expand All @@ -21,6 +23,7 @@
a = @inferred G(N)
@test @inferred parent(a) == G
@test a.coeff == transpose(N)
@test a[begin:end] == [1, 1]
end

@testset "Generators" begin
Expand Down

0 comments on commit af3e7cd

Please sign in to comment.