Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasBreuer committed Feb 13, 2024
1 parent f8d585d commit 87fceac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/Groups/sub.jl
Original file line number Diff line number Diff line change
Expand Up @@ -558,8 +558,8 @@ function is_maximal_subgroup(H::T, G::T; check::Bool = true) where T <: GAPGroup
is_prime(ind) && return true
if ind < 100
# Do not unpack the right transversal object.
t = right_transversal(G, H)[2:end] #drop the identity
return all(i -> order(sub(G, vcat(gens(H), [t[i]]))[1]) == order(G), 2:ind)
t = right_transversal(G, H)
return all(i -> order(sub(G, vcat(gens(H), [t[i]]))[1]) == order(G), 2:Int(ind))
end
return any(C -> H in C, maximal_subgroup_classes(G))
end
Expand Down
4 changes: 2 additions & 2 deletions test/Groups/conjugation.jl
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@
G = symmetric_group(5)
CC = @inferred maximal_subgroup_classes(G)
@test all(H -> degree(H) == degree(G), map(representative, CC))
@test all(H -> is_maximal_subgroup(G, H), map(representative, CC))
@test !is_maximal_subgroup(G, trivial_subgroup(G)[1])
@test all(H -> is_maximal_subgroup(H, G), map(representative, CC))
@test !is_maximal_subgroup(trivial_subgroup(G)[1], G)

G = symmetric_group(10)
x = rand(G)
Expand Down

0 comments on commit 87fceac

Please sign in to comment.